procmail
[Top] [All Lists]

Re: fgrep problem...Im pulling my hair out.

2003-05-09 03:49:16
Moreover, if you are looking for words in the Subject:, why do you
run the entire header set against the fgrep list?  How about
this, instead:

:0:  # in brackets are a caret, a space, and a tab
* ^Subject:.*\/[^ ].*
* ? echo $MATCH | fgrep isf blocked_subjects
spam

You Dman!

I took your advise and implemented the above rule and Bingo!  I tested it
thoroughly and it worked like a charm.  I will go forward and do the same
for the From field.




Btw, your other log stuff --


procmail: No match on "^Subject:.POTENTIAL SPAM*"
procmail: No match on "^Subject:.^POTENTIAL SPAM *"
procmail: No match on "^Subject:.POTENTIAL SPAM *"
procmail: No match on "^Subject:.*her horse*"

implies a not very efficient manner of testing for the subject.
You are running individual condition lines for each of those?
How about just

* ^Subject:.*POTENTIAL SPAM



Thank you again.  I removed all the extra calls and implemented only this
rule and it works great.

Bfons


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail