procmail
[Top] [All Lists]

Re: unexpected regexp handling - looks like a procmail bug

2002-10-25 06:35:47
Don skribis:

I'm now off to repair and
replace almost all of my </ and /> usage.

Relace by a word-separator of your own, like 

WSEP="[^A-Za-z0-9]+"
  or
WSEP="[^_A-Za-z0-9]+"
  or even
WSEP="[^-_A-Za-z0-9]+"

(depending on which characters you see as interwordish)


* $ ^Subject:.*${WSEP}test(ing)?${WSEP}.*(AOL|HTML)

You then might need the line-separator in a variable too:
LSEP="$"

There is of course one problem, and that is when you want to check for 
a word-separator that might also be the end of the line, but then it's 
best again to use \>.

* $ ^Subject:.*${WSEP}test(ing)?${WSEP}.*(AOL|HTML)\>

(to keep it from matching: Subject: test of DaoLib)



-- 
Affijn, Ruud

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