On Thu, 21 Feb 2008, David Flegl wrote:
> Hi all,
> I've a big broblem with my one mailbox. May someone help me, please?.
>
> User has got more then 3.500 messages in his mailbox and asked me to
> remove them directly without web-interface (SquirrelMail).
>
> I've unfortunattelly removed all file include cyrus.header, cyrus.index
> & cyrus.cache. And now I'm not able neither reconstruct nor delete mailbox.
>
> I've tried this:
> 1]
> $cyradm --user [EMAIL PROTECTED] localhost
> localhost>reconstruct -r user/bad.user
> reconstruct: System I/O Error
> localhost>dm user/bad.user
>
> 2]
> localhost>sam user/[EMAIL PROTECTED] [EMAIL PROTECTED] all
> setaclmailbox: [EMAIL PROTECTED]: lrswipcda: System I/O Error
>
> 3]
> logged as cyrus user to system:
> $>ctl_cyrusdb -r
>
> It's historical system FreeBSD 4.11R, cyrus-imapd-2.2.13_2,
> cyrus-sasl-2.1.22.
It sounds like you already fixed this, but the solution is very similar to
my steps for recovering a mailbox from backups. All you need to do is
create an empty cyrus.header file, then run reconstruct and quota, like
so:
touch cyrus.header
chown cyrus:mail cyrus.header
chmod 600 cyrus.header
su cyrus -c '/usr/local/cyrus/bin/reconstruct -x -f user.username'
su cyrus -c '/usr/local/cyrus/bin/quota -f user.username'
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