On Aug 1, 2007, at 09:19, Hans Moser wrote:

> Hans Moser schrieb:
>
>> If I do this outside IMAPd (i.e. by shell's mv command), I have to  
>> run
>> reconstruct to repair mailboxes.db, right?
> First I remove the Spam dir in the file system.
> # rm -rf /var/imap/users/foo/Spam
>
> When I dump mailbox.db
> # /opt/mail/cyrus/ctl_mboxlist -d > file
> , edit dump file and delete the Spam folder row, restore mailbox.db
> # /opt/mail/cyrus/ctl_mboxlist -u < file
> and dump again
> # /opt/mail/cyrus/ctl_mboxlist -d
> , the row is still in.
>
> How do I get rid of the Spam folder?

If you're re-importing the entire mailboxes.db, you have to delete  
the database file itself and let it re-create it.

-u "updates" it, but doesn't remove things.

-rob
----
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

Reply via email to