Converting mailboxes from one Maildir format to another

Patrick C patrickc81 at gmail.com
Wed Jun 11 21:15:37 UTC 2014


I am currently running dovecot 2.0.9 on a CentOS 6 server with the
following layout for mailboxes:

mail_location = maildir:~/Maildir

I would like to change the layout to this format to match the output
of other software packages such as offlineimap, mbsync, etc:

mail_location = maildir:~/Maildir:LAYOUT=fs:INBOX=~/Maildir/INBOX

Is there a way to convert the mailbox layout for all mail accounts
currently on the server? I was looking at dsync, but there aren't any
Maildir <--> Maildir examples.

I was also looking at potentially writing a script to manually rename
directories/move files around to match the new format, but wasn't sure
whether that would mess with UIDs or other dovecot internals.




pat
patrickc81 at gmail.com


More information about the dovecot mailing list