[Dovecot] getting rid of old spam from +spam Maildir ?

Robert Schetterer robert at schetterer.org
Fri Aug 3 16:14:05 EEST 2012


Am 03.08.2012 15:09, schrieb Voytek Eymont:
> 
> On Tue, July 10, 2012 9:34 pm, Robert Schetterer wrote:
> 
>> perhaps use daily cron with something like this
>>
>> doveadm expunge -A mailbox Junk  savedbefore 7d;
> 
> where am I going wrong ?
> 
> nothing gets removed:
> 
> # pwd
> /var/mail/vhosts/sbt.net.au/spam at sbt.net.au/.spam/cur
> # ls | wc
>     532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox spam savedbefore 7day
> # ls | wc
>     532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox spam savedbefore 7d
> # ls | wc
>    532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox spam savedbefore 5d
> # ls | wc
>     532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox spam savedbefore 4d
> # ls | wc
>     532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox spam savedbefore 3d
> # ls | wc
>     532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox spam savedbefore 2d
> # ls | wc
>     532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox spam savedbefore 1d
> # ls | wc
>     532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox spam savedbefore 1w
> # ls | wc
>     532     532   30884
> # doveadm expunge -u spam at sbt.net.au  mailbox .spam savedbefore 1w
> # ls | wc
>     532     532   30884
> 
> -------------
> ls -al
> -rw------- 1 vmail vmail   5921 Jul  9 21:55
> 1341834948.M445074P17475.geko.sbt.net.au,S=5921,W=6003:2,
> -rw------- 1 vmail vmail   3021 Jul  9 22:06
> 1341835577.M701903P17756.geko.sbt.net.au,S=3021,W=3125:2,
> ....
> 

do you use expire plugin ?

http://wiki2.dovecot.org/Plugins/Expire

-- 
Best Regards
MfG Robert Schetterer



More information about the dovecot mailing list