Re: what is the DELETED directory in spool

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

 



On Mon, 2010-05-24 at 19:23 +0200, Eric Doutreleau wrote:

I describe the delayed expunge feature in some detail in the Cyrus
chapter of WMOGAG:
<http://docs.opengroupware.org/Members/whitemice/wmogag/file_view>

> i didn't understand how it works
> for example i have a user
> i run /usr/lib/cyrus-imapd/cyr_expire -v -E 1 -X 1 -D 1 -p user.huang_yi
> and i got
> Expunging deleted messages in mailboxes older than 1 days
> Expunged 0 out of 0 messages from 0 mailboxes
> Removing deleted mailboxes older than 1 days
> Removed 0 deleted mailboxes
> this user hasn't logged since a long time then he can't have deleted 
> item less than one day older
> in the Deleted repertoire he has 178M of mail
> but as u can see nothing was deleted

The -p option is "Only find mailboxes starting with this prefix."  It
could be that DELETED.user.huang_yi [if that folder exists] doesn't
match the pattern of starting with "user.huang_yu"

It looks like that is true

sardine.mormail.com> lm DELETED.user.wcreswel*
DELETED.user.wcreswel.4B950AAB (\HasNoChildren)            
DELETED.user.wcreswel.SPAM.4B950AAB (\HasNoChildren)       
DELETED.user.wcreswel.sent-mail.4B950AAB (\HasNoChildren)

- yet -

/usr/lib/cyrus-imapd/cyr_expire -v -E 1 -X 1 -D 1 -p user.wcreswel
Expunging deleted messages in mailboxes older than 1 days

Expunged 0 out of 0 messages from 0 mailboxes
Removing deleted mailboxes older than 1 days
Removed 0 deleted mailboxes

 - you need to include the proper prefix  -

$ /usr/lib/cyrus-imapd/cyr_expire -v -E 1 -X 1 -D 1 -p
DELETED.user.wcreswel
Expunging deleted messages in mailboxes older than 1 days

Expunged 0 out of 0 messages from 0 mailboxes
Removing deleted mailboxes older than 1 days
Removing: DELETED.user.wcreswel.4B950AAB
Removing: DELETED.user.wcreswel.SPAM.4B950AAB
Removing: DELETED.user.wcreswel.sent-mail.4B950AAB
Removed 3 deleted mailboxes

- the DELETED isn't assumed.

I suppose I should add that to my documentation.

And please don't top-post.

> Could it be out of 
> sync item what cyrus has "forgotten"?
> Le 24/05/2010 17:30, pablo ponce a écrit :
> > Hi,
> > See cyr_expire with option -X: http://linux.die.net/man/8/cyr_expire
> > El 24/05/2010 16:38, Eric Doutreleau escribió:
> >> i m using cyrus 2.3.16
> >> and in each spool on the same level as the user directory i have a
> >> directory whose name is DELETED.
> >> i am wondering what is this directory?
> >> it contains a mailbox hierarchy with some mails which are very old
> >> can i smoothly delete it?
-- 
Adam Tauno Williams <awilliam@xxxxxxxxxxxxx> LPIC-1, Novell CLA
<http://www.whitemiceconsulting.com>
OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba

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