Site


My Projects


Notes


Unix/Linux/BSD

Tips

Convert mail from what mutt can read to mbox

I had to do this to get some old legacy mails converted and uploaded to my IMAP server. From http://foolab.org/node/1737

My temporary muttrc file looks like this: # Maildir, MH, mbox or MMDF set mbox_type=Maildir set my_archivedir="~/mutt_archive/$mbox_type" set confirmcreate=no set confirmappend=yes set quit=yes folder-hook . 'push <tag-pattern>~A<enter>\ <tag-prefix><copy-message><kill-line>\ $my_archivedir<enter><quit>' Then called mutt with mutt -F ./muttrc -f mailbox and it would convert the mailbox to the selected format below ~/mutt_archive/ (which must exist).

Bender: I can't keep running people over. I'm not famous enough to get away with it.