Need to convert mbox to Maildir

Mark Foley mfoley at ohprs.org
Tue Oct 2 21:41:53 EEST 2018


On Tue, 2 Oct 2018 21:17:20 +0300 Sami Ketola <sami.ketola at dovecot.fi> wrote:
>
> > On 2 Oct 2018, at 21.05, Mark Foley <mfoley at ohprs.org> wrote:
> > 
> > I have a mbox file of emails.  I want to convert this to Maildir giving me individual message
> > files per email.  I've looked at dsync, but as far as I can tell this wants a specific target
> > user and it appears that it will "distribute" the converted messages into that user's INBOX. 
> > 
> > I don't want to put these mbox messages into any particular user's Maildir hierarchy, just
> > export to file-per-message format to a destination directory of my choosing. 
> > 
> > Is this possible?
>
>
> Yes. 
>
> [root at ketola /]# mkdir /test
> [root at ketola /]# chown vmail /test
> [root at ketola /]# doveadm backup -u sami Maildir:/test/
>
> done.
>
> Sami

Excellent! Thank you. I'll give that a try. I also found: mb2md.pl downloadable from
https://wiki.dovecot.org/Migration/MailFormat. 

--Mark


More information about the dovecot mailing list