procmail
[Top] [All Lists]

RE: Multiline Received header not being matched

2004-02-13 12:56:21



From: David Stone
Sent: Friday, February 13, 2004 10:55 AM
[...]
Above, the $-sign won't work, because procamil has collapsed the 
header line
continuations into a single line.

I had originally tried it without the $ or the tab-space, and it 
didn't work.
I.e. I'd originally tried

* Received: from.* \(\[[0-9]+(.*by example\.com

which _should_ have worked, and _was_ working at one time.  I've put
in yours and Dallman Ross' suggestions to my test.rc. Hopefully the
resulting logfiles will clear up my confusion!

below,
* Received: from.* \(\[[0-9]+(.*by example\.com
                             ^
                             |
The paren above, is right after a string of numbers; you're leaving out the
intervening text. Something like this will work:

* Received: from.* \(\[[0-9].*\<by example\.com

(the + after [0-9] is unneeded, since .* is being used to match everything,
and we've determined that there's at least an ([<digit> there, which is
good enough to indicate an rDNS failure).


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