procmail
[Top] [All Lists]

Problem with header across line-breaks

2004-02-11 08:10:57
For some reason, various procmail filters seem to have stopped working
in my .procmailrc file.  These all involve the Received: header.  The
problem appears to have started when the sendmail.cf was tweaked (or
sendmail updated) so that my mx's Received: line is formatted over
several lines:

Received: from c53755ef4.cable.wanadoo.nl (c53755ef4.cable.wanadoo.nl
[83.117.94.244])
        by my.mx.example.com (8.11.6/8.11.6) with ESMTP id i18HfSk16578
        for <me(_at_)my(_dot_)mx(_dot_)example(_dot_)com>; Sun, 8 Feb 2004 
12:41:29 -0500

The recipes that are failing are similar to:

:0f
* ^Received: .*cable.* by my\.mx\.example\.com
| formail -A "X-Warn: cable customer connecting directly"

:0f
* ^Received: .*\(\[[0-9]+.* by my\.mx\.example\.com
| formail -A "X-Warn: connecting IP has no rDNS configured"

both of which get logged as "No match ..."

I thought procmail was supposed to match across line breaks in a
header?  I know I could simply drop the "by my\.mx\.example\.com"
part, but I want to force a match only on the Received header
inserted by my mx, not any others (which might actually be
legitimate!!)

procmail -v
procmail v3.22 2001/09/10

Any clues appreciated,

Dave



_______________________________________________
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>
  • Problem with header across line-breaks, David Stone <=