procmail
[Top] [All Lists]

RE: Multiline Received header not being matched

2004-02-13 11:59:58
From: David Stone
Sent: Friday, February 13, 2004 6:31 AM
[...]

:0f
* ^Received: from.* \(\[[0-9]+(.*$)[         ]+by example\.com
| formail -A "X-SpamTest: Sending MTA has no rDNS"

(The [] enclose a space and a tab)


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!

Dave Stone



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