procmail
[Top] [All Lists]

Re: debugging \<(xxx|yyy|zzz)\>

2004-05-28 15:35:02
On Fri, May 28, 2004 at  4:30:58PM -0500, David W. Tamkin wrote:
Remember that in procmail's regexp engine, ^ and $ and \< and \>
are not zero-width boundary markers; they must have a character to
match to, even if it's the putative newline at either end of the
search area. 

Yes, I'm very much aware of that; there has been much discussion,
over the years, on this list about that.  Having beat my head for the
past couple of days against the question of how to match those
characters, I figured I better give up and ask the experts. :)


In any case, can someone straighten me out on the correct way to
specify a set of bounded words? 

* 1^! SPAMSCORE ?? ()\<MSGID\>|\<NOBODY\>

I'll assume you meant "* 1^1" :)

So, there's no way to put a pair of bounding regexps at the ends of a
list?  That would account for my difficulty finding a solution. :)
It's no big deal in something small or simple, but I have several
lists in my spam filters with twenty or more bounded words, and I was
hoping I could just list the words with the boundaries at the ends of
the lists to ease maintainance.  Sounds like each word in the list
has to have its very own word boundaries. :(

I'm glad I asked before wasting more time on it.

Thanks for the info.

Jim

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

<Prev in Thread] Current Thread [Next in Thread>