LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2005, 09:29 PM   #1
freebie
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
spamassassin header rules


Hi,
I added some header rules to my spamassassin configuration file, such as the following:

header test1 Subject =~ /viagra/i
score test1 3.0

Then restarted spamassassin.
The next day, I was still receiving emails with subjects containing the work viagra. Do I need to add extra regular expression characters to this?
In order words, will what I specified match a subject of:
"buy viagra at very low rates"

or do I need something like /[^(viagra)]+viagra[.]+/i

Thanks for any thoughts or suggestions

Jeff
 
Old 02-17-2005, 08:32 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
your test looks fine to me, the onyl problem might be your (low) score of 3.0
if your REALLY want to avoid viagra in the subject i suggest:

header _LOCAL_I_HATE_VIAGRA1 Subject =~ /V.?[i1].?[a\@].?g.?[\@a]?.?r.?[\@a]/i
score _LOCAL_I_HATE_VIAGRA2 25.0

or

header _LOCAL_I_HATE_VIAGRA2 Subject =~ /\bviagra\b/i
score _LOCAL_I_HATE_VIAGRA2 25.0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding spamassassin rules when filtering with mimedefang? justanothergeek Linux - Software 0 02-16-2005 10:18 PM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
spamassassin : no header added jib2 Linux - Software 1 04-26-2004 09:30 AM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM
Viruses, ipchains, dynamic rules, rules with regular expressions marktaff Linux - Security 2 09-25-2001 04:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration