procmail
[Top] [All Lists]

Re: matching Received

2006-01-06 14:25:08
On Jan 6, 2006, at 10:16 AM, Mr Duck wrote:

    :0:
    * H ?? ^From:(_dot_)*(_at_)apid\(_dot_)net
    * H ?? ! ^Received:.*65\.17\.84\.226

I'd start by rewriting it like so:

        :0
        *   ^From:(_dot_)*\(_at_)apid\(_dot_)net
        * ! ^Received:.*\[65\.17\.84\.226\]

And see what happens with that.

I wonder if it's because email can have multiple Received lines...

That's not the issue, trust me on this.   :)
It's hard to localize to a given Received: header.
The only way to really do it is to build a big, honking RegExp a line  
at a time as you walk down the chain.
Most annoying.

Aloha mai Nai`a!
-- 
"Please have your Internet License             http://kapu.net/~mjwise/
   and Usenet Registration handy..."



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>