Hello I use the dovecot 2.0.10 server and wonder how to clean up correctly the old mails (especially for spam folder). I use maildir storage, and wonder if deleting files with an rm and file command combinaison would be good or would corrupt indexes files/whatever. for exemple, the spam folder is in ~/.mail/.INBOX.spam/ Thus, can I "cd ~/.mail/.INBOX.spam/ && rm 'files older than 2 months' " or something else ? Thanks. -- St?phane Guedon page web : http://www.22decembre.eu/ carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf cl? publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 316 bytes Desc: This is a digitally signed message part. URL: <http://dovecot.org/pipermail/dovecot/attachments/20110318/e0430bf7/attachment-0002.bin>
On 03/18/2011 02:16 PM St?phane Guedon wrote:> Hello > > I use the dovecot 2.0.10 server and wonder how to clean up correctly the old > mails (especially for spam folder). > > I use maildir storage, and wonder if deleting files with an rm and file command > combinaison would be good or would corrupt indexes files/whatever. > > for exemple, the spam folder is in ~/.mail/.INBOX.spam/ > > Thus, can I "cd ~/.mail/.INBOX.spam/ && rm 'files older than 2 months' " or > something else ? > > Thanks.Have a look at: http://wiki2.dovecot.org/Tools/Doveadm/Expunge Regards, Pascal -- The trapper recommends today: decade.1107915 at localdomain.org