Skip to content

FEATURE: write messages to a Maildir tree #7

@bruceoberg

Description

@bruceoberg

dovecot (and others) use the Maildir format for storing messages. Maildir is effectively a set of conventions for folder structure and file names. but the mail messages themselves are written as .eml files, just like jmap-backup writes.

the big ask for this feature would be honoring the folder structure from the JMAP source. the current code just gets all messages by date and writes them to one directory. tracking the folders would add complexity. see #6.

that said, writing a Maildir tree would allow you to run dovecot against it, and thus view the tree via any IMAP client.

python's builtin mailbox module can create Maildir trees super easily. it takes care of all the naming issues for folders and files. using mailbox might let you easily target other formats (e.g. mbox).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions