Closed
Description
I use afew as a post-new notmuch hook, after I've synced my mail using mbsync but before my new mail has been read by my MUA. As a result, new mail is still in the /new sub-directory (and indexed as such by notmuch).
This also means that each of those mail's filenames has not yet had any metadata appended, which means that filename doesn't have a colon in it, which means that MailMover's file renaming strategy breaks. The end result is that the UID element of the mail is not stripped out, leading to conflicting UIDs in the destination Maildir.
I have a small patch for this for afew, which limits moves to files in the "/cur" subfolder.
Does that seem the right approach? Or is this something better handled by calling afew at a different point?
Metadata
Assignees
Labels
No labels
Activity