[Dovecot] getting rid of old spam from +spam Maildir ?
Voytek Eymont
voytek at sbt.net.au
Fri Aug 3 16:09:47 EEST 2012
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,
....
--
Voytek
More information about the dovecot
mailing list