I am new to SpamAssassin. I did not want to accidentally lose mail, but even with the Subject being re-written getting SPAM mail throughout the day was distracting. My solution was to filter all mailed labeled as SPAM to a special folder using procmail and then run a cron job to deliver all the spam mail.
I currently run the cron job every day, but once I convince myself that SpamAssassin is doing its job correctly I expect to run it once a week or once a month. I doubt I will ever feel comfortable dimissing the spam without even looking (but then I did set the threshold to be 2). My procmail recipe and the processSpam script is below. Was there an existing program or an easier way to do it? I could not find it and this solution was simple enough. Hope it helps/inspires others. Cheers, Yusuf ================================================================= == .procmailrc ================================================================= ############################################################ # Spam is collected and delivered in batches # via processSpam program # This recipe is needed to make sure that the SPAM is not deleted as 'duplicate' ############################################################ :0: * ^X-Spam-Digest: Yes $ORGMAIL ############################################################ # Check message for spam ############################################################ :0 fw: spamlock * < 256000 | $SPAM --auto-whitelist ############################################################ # Collect spam and deliver it nightly # c is temporary while the system is being debugged ############################################################ :0 * ^X-Spam-Flag: YES * !^X-Spam-Digest: Yes { :0 fhw | formail -A "X-Spam-Digest: Yes" :0 c: $HOME/mail/spam.lock $HOME/mail/spam } ================================================================= == processSpam ================================================================= #!/bin/bash LOCKFILE=$HOME/mail/spam.lock # Mail can still be delivered to spam [ -f $LOCKFILE ] && exit 0 # Upon exit, remove lockfile. trap "{ rm -f $LOCKFILE ; exit 255; }" EXIT touch $LOCKFILE /usr/local/bin/formail +1 -s procmail < $HOME/mail/spam # using pine mail folders, so copy an empty folder # rather than deleting it cp -p $HOME/mail/empty $HOME/mail/spam exit 0 ================================================================= ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk