On Mon, 5 Jul 2010, Riccardo Veraldi wrote:
Hello,
I recently deleted some mailboxes.
Some of them where recreated with the same mailbox name.
So now i have the new mailboxes
user.user1
user.user2
user.user3
but issuing a lm command I still can see the old mailboxes are still
existent like wit the DELETED prefix:
DELETED.user.user1
DELETED.user.user2
DELETED.user.user3
how can I purge the old mailboxes in the mailboxes.db without damage to
the new mailboxes
and without damage to the content of mailboxes in /var/spool/imap ??
This is a feature of Cyrus. See the following from the imapd.conf
manpage:
deletedprefix: DELETED
If "delete_mode" set to be "delayed", the prefix for the deleted
mailboxes hierarchy. The hierarchy delimiter will be automatiā
cally appended.
delete_mode: immediate
The manner in which mailboxes are deleted. "Immediate" mode is the
default behavior in which mailboxes are removed immediately. In
"delayed" mode, mailboxes are renamed to a special hiearchy
defined by the "deletedprefix" option to be removed later by
cyr_expire.
Allowed values: immediate, delayed
Look at the cyr_expire manpage for the options to purge these deleted
mailboxes. You'll probably want to add/modify an EVENT in cyrus.conf for
this. Here is what I use:
delprune cmd="/usr/local/cyrus/bin/cyr_expire -E 1 -X 7 -D 7" at=0100
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