Bug#1021578: notmuch --config='' setup: "g_rename() failed: No such file or directory"

Subject: Bug#1021578: notmuch --config='' setup: "g_rename() failed: No such file or directory"

Date: Tue, 11 Oct 2022 10:48:16 +0200

To: submit@bugs.debian.org

Cc:

From: Jakub Wilk


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".


[*] 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 -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: