4 messages in net.sourceforge.lists.courier-maildrop[maildropl] pattern matching for IP a...
FromSent OnAttachments
Eric d'AlibutJul 15, 2009 7:21 pm 
Eric d'AlibutJul 15, 2009 8:43 pm 
Sam VarshavchikJul 16, 2009 4:01 am 
Eric d'AlibutJul 16, 2009 10:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] pattern matching for IP addressActions...
From:Eric d'Alibut (eric@gmail.com)
Date:Jul 15, 2009 7:21:26 pm
List:net.sourceforge.lists.courier-maildrop

Does anyone have a pattern-matching recipe for dotted-four IP addresses?

I want to pull out the IP address that originated the mail. I'm finding that an old utility, 'origip', that was circulated with 'rblcheck' no longer does the job consistently. Not sure why.

The following seems to pull out the first Received: line:

foreach(/^Received:.*/) RECVD = $MATCH

I want to RECVD to contain the IP address in $MATCH. I should add that the MTA in use is qmail.

Best regards,

------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge