procmail
[Top] [All Lists]

Re: Need help matching IP address

2006-10-17 05:52:50
On 17 Oct 2006, at 00:34 , Matthias Häker wrote:
* ^Received:.*\/[^$WS].*
{ X_RECEIVED=$MATCH
    :0
     * $ MATCH  ??  [(]\/$DOTQUAD
     { X_SENDER_IP=$MATCH }
}

X_SENDER_IP will contain the IP

 From the FIRST received line that contains an IP.  That might not be  
the Received line (or IP) you think it will be.


-- 
"I don't think the kind of friends I'd have would care."




____________________________________________________________
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>