reset cyrus mailbox.db

Simon Matter simon.matter at ch.sauter-bc.com
Sat Oct 16 21:44:07 EDT 2004


> Hi,
>
> I want to erase all information for mailboxes to have a fresh start.
>
> I am running cyrus version 2.1.16 at a debian testing server.
>
> I have had copied hundreds of user mailboxes and shared folders partly
> by mistake to the wrong sytstem path and have built the mailboxes.db
> by a script running reconstrut for all folders and all user mailboxes
> which led to a mailbox.db which has information about mailboxes which
> are not used. FYI: I have had a mistake at my rsync script because of
> whitespaces, so subfolders were not sent to the right place but spread
> over to incorrect folders.
>
> When detecting the malplaced folders, I decided to correct my rsync
> script and run it after having erased all folders and user mailboxes.
> Now I have the correct system path structure, that is ok so far.
>
> How do I rebuild the cyrus mailboxes internal information from scratch
> getting cyrus forget about nonexistent mailboxes?
>
> The argument -m is unfortunately not supported at this version of cyrus.
>
> Can I "echo > mailboxes.db" and run a reconstruct again and everything
> is fine?

I think you have to create a mailbox list with a suitable script. Then you
can remove the mailboxes.db and import the mailbox list into a new
mailboxes.db.

Simon

> BTW: Is there a wildcard allowed to rebuild all shared folders (placed
> below the user directory) and all user mailboxes so that you don't have
> to call reconstruct for each?
>
> cu
> Sascha
>
> ---
> 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
>
>


---
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 mailing list