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).
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
.emlfiles, 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
mailboxmodule can create Maildir trees super easily. it takes care of all the naming issues for folders and files. usingmailboxmight let you easily target other formats (e.g. mbox).