afewmail / afew

an initial tagging script for notmuch mail
ISC License
325 stars 97 forks source link

confusion about maildir and notmuch+afew #106

Open fauno opened 9 years ago

fauno commented 9 years ago

Hi, I've been using notmuch + afew for some time now and I recently noticed email from the new/ dir is never moved to cur/ after being read, apparently making notmuch new slow (2 minutes to find 10 new emails in 11k emails in the new/ dir).

I decided to do some tests on another box and I see that if I use notmuch insert instead, something else happens:

Now if I move back to delivering email directly to maildir and use notmuch new I see:

So... I couldn't reproduce the issue I had in the first place (though in tests I'm using afew from today), but it seems that afew doesn't play nicely with notmuch insert...

maildir.synchronize_flags is always set to true. Email delivery is performed by postfix with mailbox = Maildir/ for direct delivery and mailbox_command = /usr/bin/notmuch insert for delivery + indexing.

Any ideas? If you think this is a query I should send to the notmuch mailing list please say so. Thanks!

mbauhardt commented 4 years ago

I stumbled over the same confusion when checking my cur and new folders. But I'm not sure which piece of software in my mail chain (mbsync, notmuch, afew, mblaze) is responsible for that behaviour.

So I will check if my afew setup is responsible for this.

mbauhardt commented 4 years ago

Reading some notmuch resources give us some insights about the S flag and new and cur folder.