converting maildir to mailbox

Anton Yuzhaninov citrin+dovecot at citrin.ru
Fri Sep 16 15:50:25 UTC 2016


Hi all!

There is a script to convert maildir to mailbox in wiki:
http://wiki.dovecot.org/Migration/MailFormat
but it doesn't convert any message flags (seen e.t.c.).

I wrote a script, which converts most flags and labels:
https://bitbucket.org/citrin/scripts/src/tip/dovecot-maildir2mbox.pl

It doesn't convert recent flag and UIDs though, because it was not 
necessary in my case.

Do you think link to the script should be added to dovecot wiki?

-- 
WBR, Anton Yuzhaninov

P. S. My use case was: get maildir from other server, convert to mbox, 
compress (gzip -9) and add to my mailbox as read-only archive.


More information about the dovecot mailing list