Formatting Messages

lkolchin at lkolchin at
Thu Nov 3 04:35:32 EST 2005

Try imapsync -

Here is an example of the syntax:

imapsync --host1 --user1 username1 --password1 secret1 --host2 --user2 username2 --password2 secret2 --noauthmd5 --include '^ANYFOLDERNAME' --subscribe 


-----Original Message-----
From: info-cyrus-bounces at [mailto:info-cyrus-bounces at] On Behalf Of David Blewett
Sent: Wednesday, November 02, 2005 9:40 PM
To: info-cyrus at
Subject: Formatting Messages

I've tested out several different IMAP servers in the last few years (Courier, DBMail, now Cyrus). All my personal mail is currently in DBMail, and I'm trying to migrate it to Cyrus. I've got archives of a few mailing lists that run to the thousands of messages. Interspersed throughout these are random messages that apparently have "bare newlines" or "invalid headers". When trying to move the entire folder, I'll get these often reported errors.

Is there a way to move the messages that do not have malformed headers, and leave the rest? I want to move as much as I can to Cyrus, but I really don't want to have to try each message seperately. 
Alternatively, is there a tool to repair the messages with errors?

I've tried having 2 IMAP accounts in Thunderbird, and moving from one to the other. I've tried mailutil, offlineimap, and mbsync with no luck. Any tips would be appreciated!

Cyrus Home Page: Cyrus Wiki/FAQ: List Archives/Info:

More information about the Info-cyrus mailing list