Beber
2006-Oct-17 11:04 UTC
[Dovecot] plugin to delete spam/virus/junk/trash mail after 30 days of life
Hi,
Is there a plugin or a way in dovecot to delete any mails older that
30 days in certain maildir ?
Just something like
find maildir:%h/.Spam maildir:%h/.Virus maildir:%h/.Junk
maildir:%h/.Trash -type f -ctime 30 -exec rm {} \;
--
Beber -- Email / Jabber (+GMail) : beber at meleeweb.net
http://www.meleeweb.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Signature num?rique PGP
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20061017/25f98c78/attachment.bin>
Timo Sirainen
2006-Oct-17 11:34 UTC
[Dovecot] plugin to delete spam/virus/junk/trash mail after 30 days of life
On Tue, 2006-10-17 at 13:04 +0200, Beber wrote:> Hi, > > Is there a plugin or a way in dovecot to delete any mails older that > 30 days in certain maildir ? > > Just something like > > find maildir:%h/.Spam maildir:%h/.Virus maildir:%h/.Junk > maildir:%h/.Trash -type f -ctime 30 -exec rm {} \;Yes, a plugin called "expire". Unfortunately it's only in CVS HEAD and won't make it into v1.0 release. However I've been using CVS HEAD code myself for a few weeks now and it seems to work pretty nicely. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20061017/512fda52/attachment.bin>