procmail
[Top] [All Lists]

Re: Walking down the chain of "Received: from" headers

1999-07-12 06:58:57
waltdnes(_at_)interlog(_dot_)com (Walter Dnes) writes:
On Sun, 11 Jul 1999 11:01:43 -0500 (CDT), "David W. Tamkin"
<dattier(_at_)Mcs(_dot_)Net> wrote:

Walter Dnes had a bunch of conditions beginning like this:

  * ^^.*$+rest_of_regexp

... and the regexp was one that couldn't match on the
first line
 Are there any instances where a message wouldn't begin
with something like "From foo(_at_)bar" in the first line?  If
so, your concern would be valid.  My filters are intended
for use with sendmail and/or Exim if it makes any
difference.

The above regexp will skip exactly one line before trying to match
"rest_of_regexp".  When there's a "From " line, Received: headers will
usually start on the third line ("From ", Return-Path:, Received:,
Received:, ...).  Perhaps you meant to write:

        * ^^(.*$)+rest_of_regexp


Philip Guenther