Re: correct wrong entries in mailboxes.db ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 28 Jan 2007, peter pilsl wrote:


I manually deleted the whole content of spool/user/SOMEUSER to get rid of all the mails and subboxes in it.
Big Mistake.

Cause cyrus still knows about all the subboxes that this user was supposed to have. How do I tell cyrus that there are no subboxes anymore.

I already tried to delete the mailboxes with cyradm, but I get a System I/O-Error.

I was thinking about reconstruct -m, but this would reconstruct the mailboxes-file for all user on the system, which I'm afraid of (its a productional system I cant shut down) and would take long time, cause there are many users with many mailboxes.

       -m     NOTE: CURRENTLY UNAVAILABLE
Rebuild the mailboxes file. Use whatever data in the existing mailboxes file it can scavenge, then scans all parti- tions listed in the imapd.conf(5) file for additional mailboxes.

So, reconstruct -m wouldn't do anything for you anyways.  :)

would ctl_mboxlist -d, manually editing and then loading with ctl_mboxlist -u do what I want? Again, I fear to ruin something when doing such a critical step.

That will definately work, but I believe it requires that you take cyrus offline while you do it. Does anyone know this for sure?

Another possibility is to "rebuild" the original filesystem structure so that cyrus can reconstruct the mailbox. You could try creating a filesystem structure that matches what cyrus expects, and put a cyrus.header file in each of those directories. Then run "reconstruct -f user.username" as the cyrus user. If you can get it back to a working state, then you can remove it correctly using cyradm.

	Andy
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux