Skip to content. | Skip to navigation

Sections
Personal tools
What is this?
Hi, my name is Tom Lazar and I'm a Plone and Zope developer based in Berlin, Germany and this is my personal and professional (no big difference, really...) website.
 

Reconstructing Cyrus

Filed Under:

"Irgendwas is' ja immer..."

Part of the process when migrating Cyrus IMAP accounts is running the reconstruct tool on the destination machine to add the mail to the database. Using the -r -f flags ensures, that the command will pick up any folders and subfolders.

Unless - as a client and I found out this morning - a folder contains no emails but just subfolders. In that case reconstruct ignores that folder (as well as its subfolders). To enforce its inclusion simply copy (any) cyrus.header file from another folder into it and re-run reconstruct (an empty file created with touch won’t work - it needs to be of this particular binary format that Cyrus expects).

Better way to reconstruct

Posted by A visitor at May 20, 2005 11:11 AM
Better not copy a cyrus.* file from somewhere, but simply create the mailbox, and then reconstruct it.