From: Jonathan N. <jni...@pb...> - 2006-11-29 06:12:09
|
I currently have a setup where users drop spam into a "Learn as Spam" folder. That folder is tarred up and SCPd to a mail gateway host, where the Worlds Crappiest Perl Script unpacks it, runs the mails through sa-learn, and gets rid of the spam tarball that was left over. Every 15 minutes, this process repeats itself, gobbling up whatever spam users have added to the "learn as spam" folder. Here's a bit of the script: system("mv home spam"); system("sa-learn --showdots --spam spam/vmail/shared-maildirs/Spamdrop/.Incoming/cur"); system("/usr/sbin/amavisd reload"); system("rm -rf /home/food/spam"); sometimes there are quite a few emails in the "cur" folder. Can I do something like "pyzor report < *" or is it going to be more complicated than that? My Perl-foo is very weak, so I ask you, pyzor hive mind, for help. :D -- Jonathan |