How to keep flags after move mailboxes to another server
morgan at orst.edu
Thu Jun 7 17:58:05 EDT 2007
On Thu, 7 Jun 2007, Amy Jin wrote:
> Hi There,
> I'm running cyrus 2.2.12 on several servers . Recently, I need to move
> mailboxes from one server
> to another server because of storage shortage.
> I don't have a front-end Cyrus Aggregator, so I can't use cyradm command
> "xfermailbox" to do it.
> I write a script to create mailbox and copy mail date to target server.
> To avoid duplicated mailbox_id,
> the cyrus.header file will not be copied to the target server.
> After reconstruct the new mailbox. I loss all of the flags. The seen
> flag is easy to handle, just replace the old
> mailbox_id with the new id in user.seen file. But how can I keep the
> other flags (e.g. important, work, personal, to do, later),
> it seems they are in the cyrus.index file?
'imapsync' is really the tool you want to use for this. It will create an
exact copy of a mailbox, including flags.
More information about the Info-cyrus