procmail
[Top] [All Lists]

egreping only first occurence

1996-03-21 14:37:14
Hello,

I have some recipes that egrep bounced majordomo list message bodies for
"From:" headers of certain senders.  A problem comes up when people quote
an entire From: header of the message to which they are responding.  My
egrep then will find the quoted "From:" header of a different person who
is on my auto-approve list, and approve the message when it shouldn't. 
How can I set this recipe to only look at the first occurence of the From: 
header? 

My current recipe looks something like this:

:0 B
* ^From:.*(address1.com|address2.com|address3.com)
| approve_message

---
Derrick Green
eusdegr(_at_)wser(_dot_)ericsson(_dot_)se
Richardson, Texas

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