Re: rename bunch of folders [auf Viren überprüft]
Robert Banz
banz at umbc.edu
Wed Aug 1 12:43:19 EDT 2007
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
More information about the Info-cyrus
mailing list