Skip to content

Should afew's MailMover move emails out of Maildir's /new or /tmp subfolders ? #196

Closed
@dannyob

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions