[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@meleeweb.net http://www.meleeweb.net
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.
Timo Sirainen tss@iki.fi
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.
ok, i see. maybe I could get the code and compile it myself. but will
it be working with 1.0_beta8 ?
-- Beber -- Email / Jabber (+GMail) : beber@meleeweb.net http://www.meleeweb.net
On Tue, 2006-10-17 at 13:42 +0200, Beber wrote:
Timo Sirainen tss@iki.fi
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.
ok, i see. maybe I could get the code and compile it myself. but will
it be working with 1.0_beta8 ?
Nope. It uses several features which are available only in CVS HEAD, otherwise I would have put it to v1.0.
Timo Sirainen tss@iki.fi
On Tue, 2006-10-17 at 13:42 +0200, Beber wrote:
Timo Sirainen tss@iki.fi
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.
ok, i see. maybe I could get the code and compile it myself. but will it be working with 1.0_beta8 ?
Nope. It uses several features which are available only in CVS HEAD, otherwise I would have put it to v1.0.
Ok, thanks, will crontab while waiting for it :)
-- Beber -- Email / Jabber (+GMail) : beber@meleeweb.net http://www.meleeweb.net
participants (2)
-
Beber
-
Timo Sirainen