-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anyone out there know of a tool that can convert a Cyrus MailDir format to Dovecot mbox? I have a user that I need to move over from a mail server running cyrus using MailDir format. At first I told him to setup second account with Thunderbird to our mail server and then use Thunderbird to move the messages over. But he has over 100K messages so not as easy to do. Is there a tool out there for doing this sort of conversion? I tried to simply cat all the messages into a single file, but just got a "Not valid mbox format" when I tried to read the mail folder. - -- C. J. Keist Email: cj.keist at colostate.edu UNIX/Network Manager Phone: 970-491-0630 Engineering Network Services Fax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301 All I want is a chance to prove 'Money can't buy happiness' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI63pnA29OFr7C6jcRAkBSAKCU61WhK1R2FwZEE4B0/3kFzEeu6ACeLgw+ 4qabCHV1qe7YInhcnqsdKQk=rjlB -----END PGP SIGNATURE-----
On Oct 7, 2008, at 6:04 PM, CJ Keist wrote:> Anyone out there know of a tool that can convert a Cyrus MailDir > format > to Dovecot mbox? I have a user that I need to move over from a mail > server running cyrus using MailDir format. At first I told him to > setup > second account with Thunderbird to our mail server and then use > Thunderbird to move the messages over. But he has over 100K > messages so > not as easy to do. > Is there a tool out there for doing this sort of conversion? I > tried > to simply cat all the messages into a single file, but just got a "Not > valid mbox format" when I tried to read the mail folder.You could use either cyrus2dovecot or cyrus2courier tools to convert to Maildir format (http://wiki.dovecot.org/Migration/Cyrus). From there use some maildir to mbox conversion tool (e.g. Dovecot's convert- tool). -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081007/d4180bce/attachment-0002.bin>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Timo, Thanks. The cyrus2dovecot looks to have worked. So if I understand the process I now just move the MailDir folder that was created to the users home directory on our mail server. I will try the dovecot convert plugin. Just make sure I'm doing this correct in the config file: mail_location = mbox:~/:INBOX=/userM/mail/%u protocol imap { mail_plugins = convert } plugin { convert_mail = Maildir:~/Maildir:INBOX=/userM/mail/%u } Is this correct? The example on the website only shows how to convert from mbox to MailDir. Timo Sirainen wrote:> On Oct 7, 2008, at 6:04 PM, CJ Keist wrote: > >> Anyone out there know of a tool that can convert a Cyrus MailDir format >> to Dovecot mbox? I have a user that I need to move over from a mail >> server running cyrus using MailDir format. At first I told him to setup >> second account with Thunderbird to our mail server and then use >> Thunderbird to move the messages over. But he has over 100K messages so >> not as easy to do. >> Is there a tool out there for doing this sort of conversion? I tried >> to simply cat all the messages into a single file, but just got a "Not >> valid mbox format" when I tried to read the mail folder. > > You could use either cyrus2dovecot or cyrus2courier tools to convert to > Maildir format (http://wiki.dovecot.org/Migration/Cyrus). From there use > some maildir to mbox conversion tool (e.g. Dovecot's convert-tool). >-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI685lA29OFr7C6jcRAj5TAJ4pFrKhGVhLA/87U31oiEMNWW3jSQCfVfGM JhEJPPZTdgwpX/0QzpyOZug=VpaM -----END PGP SIGNATURE-----
>>>>> CJ Keist <cj.keist at colostate.edu>:> Anyone out there know of a tool that can convert a Cyrus MailDir format > to Dovecot mbox? I have a user that I need to move over from a mail > server running cyrus using MailDir format. At first I told him to setup > second account with Thunderbird to our mail server and then use > Thunderbird to move the messages over. But he has over 100K messages so > not as easy to do.>From server to server sync'ing, there's imapsync, which avoids having topull the messages over manually. http://wiki.dovecot.org/Migration I used it to pull around 30-40k messages from a cyrus imapd to a dovecot on a different machine (my dovecot used maildir, not mbox, but that shouldn't make any difference). The UIDs aren't preserved, but everything else seems to be. My MUA (Gnus with the nnimap backend) uses custom flags to store state and all of that state was preserved. Losing the UIDs in Gnus' case, only meant that the cached article information was useless, and that I would have to freshly download everything I wanted cached. And it also turned out to be mostly irrelevant, since the folder structure changed with dovecot. The only folder for which I could have preserved cached information would have been the INBOX.