Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mutt, notmuch: 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 <[email protected]> -- 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.
- Loading branch information