Open fauno opened 9 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.
Reading some notmuch resources give us some insights about the S
flag and new
and cur
folder.
Hi, I've been using notmuch + afew for some time now and I recently noticed email from the
new/
dir is never moved tocur/
after being read, apparently makingnotmuch 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:new.tags = inbox;unread;
in notmuch-config new email is delivered tonew/
and moved tocur/
and flagged as seen after being read (ok)new.tags = new
as required byafew
, new email is delivered tocur/
and flagged as seen inmediately (bad)afew -v --new --tag
after this, it complains that the file incur/
is a single message mbox "likely caused by misconfigured mail delivery" and the email is taggedinbox
but notunread
(bad)Now if I move back to delivering email directly to maildir and use
notmuch new
I see:new.tags = inbox;unread;
new emails are delivered tonew/
and moved tocur/
after runningemacs new
and reading them (ok)new.tags = new
as required byafew
, new emails are delivered tonew/
, markedinbox unread
byafew -v --new --tag
without complaining about single message mbox, moved tocur/
and flagged as seen after being read (ok)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 thatafew
doesn't play nicely withnotmuch insert
...maildir.synchronize_flags
is always set totrue
. Email delivery is performed bypostfix
withmailbox = Maildir/
for direct delivery andmailbox_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!