i'm still chasing funny behaviour :)
so as i said before i have the first box as my *INBOX* and and the second one for 'recent' threads: [nm_query_type=threads]
"drw [->]" "notmuch://?query=folder:drw AND tag:unread" \ " [..]" "notmuch://?query=folder:drw" \
now mark a msg in [..] 'N' but don't 'open' it. as soon as you change vfolder, it will be in [->]. now marking it 'N' anywhere, including in [..], that is after at least one change-vfolder, won't remove the 'unread' tag (it's still in [->] and if you have
set nm_hidden_tags=
then you see that it's still tagged 'unread')
now mark something else 'N' in [..], then either 'open' it or mark it 'N' again, without changing vfolder and it won't pop up in [->]. so in this case 'N' did tag and untag 'unread'.
so to summarise: hit NN on a msg, tagged unread then untagged unread hit N, then vfolder-change, then N on the same msg, first N tags it unread, second N doesn't do anything about unread tag.
On Mon, Nov 18, 2013 at 04:18:32PM -0500, glphvgacs wrote:
i'm still chasing funny behaviour :)
so as i said before i have the first box as my *INBOX* and and the second one for 'recent' threads: [nm_query_type=threads]
"drw [->]" "notmuch://?query=folder:drw AND tag:unread" \ " [..]" "notmuch://?query=folder:drw" \
now mark a msg in [..] 'N' but don't 'open' it. as soon as you change vfolder, it will be in [->]. now marking it 'N' anywhere, including in [..], that is after at least one change-vfolder, won't remove the 'unread' tag (it's still in [->] and if you have
set nm_hidden_tags=
then you see that it's still tagged 'unread')
now mark something else 'N' in [..], then either 'open' it or mark it 'N' again, without changing vfolder and it won't pop up in [->]. so in this case 'N' did tag and untag 'unread'.
so to summarise: hit NN on a msg, tagged unread then untagged unread hit N, then vfolder-change, then N on the same msg, first N tags it unread, second N doesn't do anything about unread tag.
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>.
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>.
IMHO it's better to use tag "archive" and special index macro to set the tag. It's better to be independent on maildir flags, because you can move to archive unread emails and you're not affected by programs that modify the maildir flags.
Karel
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.
mutt-kz@lists.fedoraproject.org