Clean.quarantine
    Denis Beauchemin 
    Denis.Beauchemin at usherbrooke.ca
       
    Wed Feb 18 15:59:45 GMT 2015
    
    
  
Peter,
The /etc/cron.daily/clean.quarantine script uses these variables:
$quarantine_dir = '/var/spool/MailScanner/quarantine';
$days_to_keep   = 30;
You could create a new copy of the script such as /etc/cron.daily/clean.quarantine.spam and modify the variables to your liking. 
The script is not really intelligent and it does not know if you change the quarantine dir like I do:
Quarantine Dir = %rules-dir%/quarantine.rules
The file contains:
To:  *@usherbrooke.ca           /quarantaine/usherbrooke
To:  default                    /quarantaine/autres
I use these crontab entries to clean my quarantine:
# clean nonspam
5 0 * * * /bin/rm -rf /quarantaine/*/$(date +\%Y\%m\%d --date "2 days ago")/nonspam
# clean rest of quarantine
5 0 * * * /bin/rm -rf /quarantaine/*/$(date +\%Y\%m\%d --date "40 days ago")/
Denis
-----Message d'origine-----
De : mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] De la part de Peter Nitschke
Envoyé : 18 février 2015 10:15
À : mailscanner at lists.mailscanner.info
Objet : Clean.quarantine
The current clean quarantine is great, but I would like to be able to have different days_to_keep for spam and for nonspam.
There is more chance that someone will want to recover a mail that has been caught as spam, and as mails are having much more content, keeping non-spam for long doesn't make sense.
Any help appreciated.
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website! 
    
    
More information about the MailScanner
mailing list