Allow conditional Spam handling based on score

One of the neat features that amavisd has is the ability to say flag potential spam and delete messages we know are spam. (based on spam score.) This made it easier for the user to browse through their Spam folder to find items accidentally tagged as spam because there were way less messages to browse through.

So for example if the spam score is under 5, then it probably isn't spam. If it is over 5 but less than 10 it potentially is spam, so flag accordingly (in the case of my virtualmin, move to $HOME/Maildir/.Spam) If it is OVER 10 then just delete it because its surely spam. It would be nice to have this logic in the virtualmin configs. This should be rather easy to do by simply adding a rule to the files generated in /etc/webmin/virtual-server/procmail to include:

:0
* ^X-Spam-Status: Yes, score=[1-9][0-9].
/dev/null

in between the "spamassassin call" and the "move to $HOME/Maildir/.Spam"

This rule would then delete anything that scored OVER 10.

There is a thread on the forums which also talks about this feature:

http://www.virtualmin.com/index.php?option=com_fireboard&Itemid=77&func=...

Status: 
Closed (fixed)