On Tue, Nov 19, 2013 at 12:10:47PM +0100, Karel Zak wrote:
On Mon, Nov 18, 2013 at 04:18:32PM -0500, glphvgacs wrote:
Well, mutt applies flags to the maildirs not when you hit N, but when
you leave the mailbox or after <sync-mailbox> (default key '$')
command. It means toggle read/unread is in-memory change only.
The mutt-kz does the same thing, it follows maildir flags (transform
maildir flags to notmuch tags) after message filename update by
<sync-mailbox>.
right, but in maildir case it keep track of that in-memory modification,
that is it will update the maildir flag whenever <sync-mailbox> is called
(say when user quits mutt) but in tag's case it doesn't.
If you really want to to use N to immediately modify notmuch tags
then you have to define a macro in your muttrc to call <sync-mailbox>
after <toggle-new>.
that still won't solve the opening problem. opening a msg marks it not-new
but doesn't update it's tag in notmuch db. there might be a macro solution
for this one too but my bigger point is that mutt is not dancing with
notmuch. i mean IMHO, opening, marking not-new and so on should *naturally*
be mapped to relevant tags in notmuch. just as they are mapped, and rightly
so, to relevant flags in maildir.