preserving messages flags
amilivojevic at pbl.ca
Wed Mar 2 15:20:57 EST 2005
> I've built new mail server and migrated over my mailboxes. When I access
> my mailbox on the new machine all of the messages show up as unread.
> Is there a was to preserve the message flags?
If you simply copy mailboxes over, than flags will be lost. The only
way to preserve them when migration is done this way is if both servers
are running same implementation of IMAP daemon (uw-imapd to uw-imapd, or
cyrus to cyrus). If you are doing cyrus to cyrus migration, you should
also copy database files where flags are stored.
Would be nice if there was a tool that is able to read Berkeley style
mailboxes, parse them for uw-imapd headers used for storing flags, and
creates Cyrus database based on that information.
If you are migrating from different IMAP server (for example uw-imapd to
cyrus), one option is to use program such as imapsync. It connects to
source and destination servers using IMAP protocol, and copies the
messages taking care to set flags on destination exactly as they were at
source. This is rather slow, but usable for single user (or for
multiple users, depending on size of their mailboxes).
Aleksandar Milivojevic <amilivojevic at pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus