Need to convert mbox to Maildir
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@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@ketola /]# mkdir /test [root@ketola /]# chown vmail /test [root@ketola /]# doveadm backup -u sami Maildir:/test/
done.
Sami
On Tue, 2 Oct 2018 21:17:20 +0300 Sami Ketola <sami.ketola@dovecot.fi> wrote:
On 2 Oct 2018, at 21.05, Mark Foley <mfoley@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@ketola /]# mkdir /test [root@ketola /]# chown vmail /test [root@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
participants (2)
-
Mark Foley
-
Sami Ketola