Does mutt support saving to an mbox

mutt

Is it possible to save messages in mbox format? I have set mbox_type = Maildir, because I use offlineimap to retrieve my mail. Unfortunately it seems to affect the global settings, and it will save in Maildir format as well, which breaks git patches.

Best Answer

Mutt does support reading and writing mbox-format mail folders where all the messages are concatenated into one file. The tradeoff, however of using this format is that when messages are deleted, the entire file needs to be re-written. One advantage, however is that you can gzip-compress the mbox.

AFAIK, you can just refer to any mail folder as you would a regular maildir and mutt will automatically detect if it's a file (use as mbox) or a directory (use as a maildir). Setting mbox_type to maildir really only affects what format NEW mail folders are in when they are created by mutt.

Related Question