Feel free to modify the script as suggested by Dave if you want to reject any messages marked as spam. But do so knowing SpamAssassin is an excellent spam filter, but it's not perfect. Be aware of false-positives!
<off_topic>I'm off to Wrigley. Go Cubs!</off_topic> -Don -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dave Bartmess Sent: Tuesday, October 14, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: [xmail] Re: [ANNOUNCE] SpamAssassin Filter (sa_filter) Releasev1.3 You should be able to by simply modifying the script to check if it's SPAM ($isSpam == "SPAM") and return 4, 5 or 6 instead of 7. My "attempt" to do this is shown below. See the "added line"... But I'd wait on word from the author to make sure... #************ From sa_filter.pl ******************** my $isSpam="NOT SPAM"; if ($checkedEmail=~/X-Spam-Flag: YES/) { $isSpam="SPAM"; $checkedEmail=~s/(?<!\r)\n/\r\n/g; $xmailHeader=~s/(?<!\r)\n/\r\n/g; } # put first 6 lines back on returned message # put it back in the file open my $outHandle,">$fileName" or die("Can't open file $fileName for writing");print $outHandle $xmailHeader; print $outHandle $checkedEmail; close $outHandle; # log results logit($logHandle,$isSpam,$rcpt); closeLog($logHandle); exit 6 unless ($isSpam eq "NOT SPAM") ; #<----- Added line # We're always modifying the message because spamassassin will add some X-Spam-headers # if it's spam or not. exit 7; #******************************************** On Tue, 2003-10-14 at 10:05, Alex Young wrote: > Hi Don, > Is it possible to set this script up so it deletes messages it > thinks are spam but still modifies the headers of other mails? > > Thanks, > Alex > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] = > On > Behalf Of Don Drake > Sent: 02 October 2003 15:21 > To: [EMAIL PROTECTED] > Subject: [xmail] [ANNOUNCE] SpamAssassin Filter (sa_filter) Release v1.3 > > > > > I've finally had some time to upgrade my XMail server to 1.17 and modify = > my > SpamAssassin filter to work under the new filter return codes. > > SpamAssassin Filter (sa_filter) v1.3 allows the filter to work with the = > new > filter return codes introduced in XMail 1.16. No other enhancements = > were > made. > > You can download the filter here: > > http://www.drakeconsult.com/xmail/ > > -Don > > ---- > Donald Drake > President > Drake Consulting > http://www.drakeconsult.com/ > p: 312-560-1574 > f: 312-896-5736 > > - > To unsubscribe from this list: send the line "unsubscribe xmail" in the = > body > of a message to [EMAIL PROTECTED] For general help: send the line > "help" in the body of a message to [EMAIL PROTECTED] > > > - > To unsubscribe from this list: send the line "unsubscribe xmail" in > the body of a message to [EMAIL PROTECTED] > For general help: send the line "help" in the body of a message to > [EMAIL PROTECTED] -- David A. Bartmess Software Configuration Manager / Sr. Software Developer eDingo Enterprises http://edingo.net - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
