Karl Heinz Peters wrote, on 19. feb 2007 08:39:
[...]
is there something like the logclean-script for the quarantine?
i need something like "delete every mail older then x days", since my
users request it...
find /path/to/dspam-quarantine-dir -type f -mtime +7 -exec rm {} \;
mtime is greater than age in days since creation that you wish removed.
that will remove the whole files, not single mails
so, not really usable for me, sorry :(
Ah. Sorry, I don't use that kind of quarantine, I presumed it held
single files (which it jolly well ought to).
I presume these are mbox files (à la /var/dspam/log/dspam.messages),
then. I just googled for 'mbox split script' and the first thing Google
comes up with is
http://www.mail-archive.com/[email protected]/msg23366.html,
perhaps that can help as a start ...
--Tonni
--
Tony Earnshaw
Email: tonni at hetnet dot nl