On 2021-04-13, 08:56 -0700, Eric Abrahamsen <[email protected]> wrote:

> Utkarsh Singh <[email protected]> writes:
>
>> Hi,
>>
>> I am trying to configure Gnus on my GNU/Linux system.  I will first
>> try to give background for my problem.
>>
>> 1. I am using mbsync/isync to fetch mail.
>> 2. msmtp as `sendmail-program'.
>> 3. '~/.local/share/mail/email-id' as maildir.
>> 4. notmuch as mail indexer.
>>
>> Overview of my maildir:
>> ~/.local/share/mail/[email protected] $ ls
>> INBOX  [Gmail].Drafts     [Gmail].Sent       [Gmail].Spam     [Gmail].Trash
>> Sent   [Gmail].Important  [Gmail].Sent Mail  [Gmail].Starred
>>
>> *Problem: Gnus is creating .nnmaildir directory in my maildir.*
>>
>> Due to this whenever I try to run 'notmuch new' (command to update
>> indexer database) it gives several lines long warning:
>> ignoring non-mail file .nnmaildir/cur/..'
>
> The nnmaildir backend uses the .nnmaildir directory to store cached
> headers and other information about your maildir messages, for faster
> retrieval. Many people don't like this, and/or would prefer more
> configurability, but at the moment there's no way around it. For now you
> can tell notmuch to ignore that path with the "new.ignore" option in
> your notmuch config.

Thanks! Everything works as expected now.  For the sake of reference
here is the diff of change I made:

diff --git a/notmuch/.config/notmuch-config b/notmuch/.config/notmuch-config
index 90ec965..72e1c22 100644
--- a/notmuch/.config/notmuch-config
+++ b/notmuch/.config/notmuch-config
@@ -5,7 +5,7 @@ name=Utkarsh Singh
 [email protected]
 [new]
 tags=unread;inbox;
-ignore=.mbsyncstate;.uidvalidity
+ignore=.mbsyncstate;.uidvalidity;.nnmaildir
 [search]
 exclude_tags=deleted;spam;
 [maildir]
-- 
Utkarsh Singh
http://utkarshsingh.xyz

Reply via email to