How to RegEx only body of a message? |
Post Reply |
Author | |
microtech
Newbie Joined: 03 April 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 19 February 2010 at 7:48pm |
Hi Everyone,
I have tested samfilter for a while and very happy with how it works. however, have a question hoping someone has an answer willing to share. I have a Keyword RegEx filter that looks for numeric IP numbers in each inbound message: ((?i)http://+([\d]{1,3}[\.+]){3}[\d]{1,3}) a while back Barracuda spamfilter started to add IP-numbers to message header area - something like this ... X-Barracuda-Connect: www1.ethostream.com[66.195.129.11] X-Barracuda-URL: http://66.195.129.15:8000/cgi-bin/mark.cgi X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at ethostream.com Now, spamfilterISP generates more false positives when sender is using Barracuda. My question is: Is there any directive that i can apply to my RegEx filter so filter scans only body of message (and ignore message header)? Please let us know. Thank you. Edited by microtech - 19 February 2010 at 7:54pm |
|
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
microtech,
By default SpamFilter will only check the "Received:" headers in an email - all other headers are skipped for the keyword checks. You can alter this default behavior via the following two settings in the SpamFilter.ini file: ;if ScanReceivedHeaders is set to 1 SpamFilter will add the "Received:" headers to the text examined for keywords and statistical Bayesian searches. ScanReceivedHeaders=1
;if ScanAllHeaders is set to 1 SpamFilter will add all email's headers to the text examined for keywords and statistical Bayesian searches. ScanAllHeaders=0 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.262 seconds.