On Tue, Oct 11 2022, Jakub Wilk wrote:

> Package: notmuch
> Version: 0.37-1
> Severity: minor
>
> I did this by accident[*]:
>
>     $ notmuch --config='' setup
>     Welcome to notmuch!
>     [...]
>     Your full name [Jakub Wilk]:
>     Your primary email address [jwilk@localhost]:
>     Additional email address [Press 'Enter' if none]:
>     Top-level directory of your email archive [/tmp/tmp.GKlsDiiCm1]:
>     Tags to apply to all new messages (separated by spaces) [ unread inbox]:
>     Tags to exclude when searching messages (separated by spaces) []:
>     Error saving configuration to : Failed to rename file “.IRITT1” to “”: 
> g_rename() failed: No such file or directory
>
> Can we have a more helpful error message?
> Maybe:
>
>     "notmuch --config='' setup" does not make sense, you fool.
>
> Or:
>
>     --config='' is not supported for "notmuch setup".

Note that --config='', --config="", --config=, '--config=',
'''''--config='"""" (and many combinations of these, but not
e.g. --config="''" ;) are the same, when entered from shell
command line  -- so perhaps the error message somehow shows that
empty file is not suitable (nor '.' nor '..', in which case it
should first try something to figure out that the filename is
suitable (but preferably not creating it first...)

Tomi


>
>
> [*] I had no idea what I was doing. What I really wanted was probably 
> "notmuch --config='' new".
>
>
> -- System Information:
> Architecture: i386
>
> Versions of packages notmuch depends on:
> ii  libnotmuch5     0.37-1
> ii  libc6           2.35-3
> ii  libglib2.0-0    2.74.0-2
> ii  libgmime-3.0-0  3.2.13+dfsg-2
> ii  libtalloc2      2.3.4-1
> ii  zlib1g          1:1.2.11.dfsg-4.1
>
> -- 
> Jakub Wilk
>
> _______________________________________________
> notmuch mailing list -- notm...@notmuchmail.org
> To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to