procmail
[Top] [All Lists]

Re: Matching the first occurrence of a header field

2002-04-07 12:25:48
Philip suggested to Romildo,

| * ^Received:.*(^.*)*\/Received:.*

What if there is a header named something like X-Received: or
Divine-Revelation-Received: between the first two Received: headers?  What if
for some reason the string "Received:" appears later along in the first
Received: header?  The second Received: in that condition line needs to be
left-anchored to a newline.  You could work with $ instead of ^ as I
suggested,

 * ^Received:(.+$)+\/Received:.+

or modify Philip's form:

 * ^Received:.+(^.+)*^\/Received:.+





_______________________________________________
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>