]> granicus.if.org Git - neomutt/commit
mutt, Update 'unread' tag for all files mapped to msg
authorDon Zickus <dzickus@redhat.com>
Fri, 11 Oct 2013 18:34:57 +0000 (11:34 -0700)
committerRichard Russon <rich@flatcap.org>
Mon, 14 Mar 2016 23:11:43 +0000 (23:11 +0000)
commit92f2586b4538a0ab0c1a27f1ded382fbb45231d2
tree1e00efa1a7b68120c07713492cfa67970d922efc
parent7e2caf20a75f3157aeaef0c1343da0b8fac20d84
mutt, Update 'unread' tag for all files mapped to msg

I ran into an issue where I would read an email in my inbox that was
sent to me and cc'd a mailing list and it would not remove the 'unread'
tag after syncing the mailbox.

Apparently, when nm_synci'ing the message, the local inbox copy would be
recognized as seen but the duplicate copy in the mailing list folder
would still be in the 'new' directory, so the 'unread' flag would not
be cleared.

The way the 'duplicate' messags where handled in 'rename_filename', it
appears after the add/remove the local copy of 'msg' was not updated
with the new paths.  I fixed this by destorying the message and then
re-reading it from the notmuch database.

However, the tags were still off.  I had to further call
'update_header_flags' to re-read the tags from the database (using
the updated paths) to clear the 'unread' tag.

Both of these changes seem to work as expected now.

Signed-off-by: Don Zickus <dzickus@redhat.com>
--

I am not too familar with this code, so my changes may not be
correct.  I do know they seem to work after a couple of days of
testing.
mutt_notmuch.c