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? THX --Mark
> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20181002/6bd86cb7/attachment.html>
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. > > SamiExcellent! Thank you. I'll give that a try. I also found: mb2md.pl downloadable from https://wiki.dovecot.org/Migration/MailFormat. --Mark