Hi Anders! On Mon, 02 Feb 2009, Anders Rayner-Karlsson wrote:
> > There is a program mb2md that converts mbox format to maildir > > format. > > I have found it difficult to use, but I have made it work. mb2md might > > work very nicely if you give it a clean, well maintained mbox format > > email directory, but it sounds like that is not what you have, so I > > recommend using bash and core-utils to clean up the mess somehow. I > > have been doing that myself for the past couple of weeks. > > I think there is some Perl or Python tools, but you could actually > just use mutt itself to sort and move the mail around. I have done something like this: Consider this minimal .muttrc ,---- | # Specify which type, use any of | # Maildir, MH, mbox und MMDF | set mbox_type=Maildir | | # Where to store, dir must exist! | set my_archivedir="~/mutt_archive/$mbox_type" | | # Create without confirmation | set confirmcreate=no | | # append without confirmation | set confirmappend=yes | | # quit without confirmation | set quit=yes | | folder-hook . 'push <tag-pattern>~A<enter>\ | <tag-prefix><copy-message><kill-line>\ | $my_archivedir<enter><quit>' `---- Then I start mutt using this .muttrc with the mailbox that should be converted: ~$ mutt -F /tmp/muttrc.minimal -f $mailbox Now mutt will happily store all mails below ~/mutt_archive/ in either a folder named maildir,mbox, mh or mmdf depending on the chosen target format. And it will not mess with your original mailbox, just create copies. regards, Christian -- Girls who throw themselves at men, are actually taking very careful aim.
