procmail
[Top] [All Lists]

Re: filtering the body for a string

1998-06-27 11:50:17
Stan Ryckman suggested to Rocke Robertson,

| If you want to worry about "dear" at the end of one line, and "friend"
| at the start of the next, you could try something like:
|    :0B
|    * ()\<dear *($)? *friend\>
| 
| OK, that'll match "dearfriend" too but I'm a bit lazy today :-)

It's easy enough to rule out "dearfriend":

     * ()\<dear( |$)+friend\>

or take a page from Rik Kabel:

     * ()\<dear(\<)+friend\>

In any case, I think the left anchoring in Rocke's original recipe (rather
than overlooking the chance of medial newlines) was probably the trouble. 
It wouldn't match on text like "My dear friend."

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