Cyrus mailbox (plain files) to Dovecot
Hi,
I'm migrating from a Cyrus to a Dovecot installation right now. As part of it I've got plain Cyrus mailboxes (w/o real metadata; so to say I've got the /var/spool/imap/user part but not the /var/lib/imap/user one)). Those former mailboxes I want to provide under a public namespace via ACLs. The question I cannot answer right now is: How can I convert these plain mailboxes on a FS level to maildir++ so I can provide them as public mailboxes on the new system? The tools I have found require a valid/complete cyrus mailbox. (I don't really care about message flags etc).
Thanks, Wolfgang
Hi,
the simplest way is to create cur/new/tmp folders for every mailbox and copy all mailfiles into new folder. Dovecot will create all other files like 'dovecot-uidlist' automatically. You may get some warnings.
All emails will be marked as new ones and all will be redownloaded.
Milo
Dne 25.9.2015 v 13:03 Wolfgang Rosenauer napsal(a):
I'm migrating from a Cyrus to a Dovecot installation right now. As part of it I've got plain Cyrus mailboxes (w/o real metadata; so to say I've got the /var/spool/imap/user part but not the /var/lib/imap/user one)). Those former mailboxes I want to provide under a public namespace via ACLs. The question I cannot answer right now is: How can I convert these plain mailboxes on a FS level to maildir++ so I can provide them as public mailboxes on the new system? The tools I have found require a valid/complete cyrus mailbox. (I don't really care about message flags etc).
participants (2)
-
Miloslav Hůla
-
Wolfgang Rosenauer