10 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] filtering on "Receive...
FromSent OnAttachments
PollywogJul 17, 2004 12:10 pm 
Tony EarnshawJul 18, 2004 12:46 am 
PollywogJul 18, 2004 8:07 am 
PollywogJul 18, 2004 8:19 am 
PollywogJul 18, 2004 8:46 am 
Ron JohnsonJul 18, 2004 11:06 am 
PollywogJul 18, 2004 11:19 am 
ArneJul 19, 2004 3:04 am 
PollywogJul 19, 2004 8:16 am 
PollywogJul 19, 2004 8:21 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:Re: [maildropl] filtering on "Received" headerActions...
From:Pollywog (lin@shadypond.com)
Date:Jul 19, 2004 8:21:51 am
List:net.sourceforge.lists.courier-maildrop

On 07/19/2004 10:03 am, Arne wrote:

foreach ( /^Received:.*/ ) { COUNT=$COUNT+1 if ($COUNT == 2) { ( $MATCH =~ /\[![0-9\.]+/ ) xfilter "reformail -A 'MX IP: $MATCH2'" } }

This example extracts the IP-address of the second `received' line - usually your backup mx.

I have a question about this line: ( $MATCH =~ /\[![0-9\.]+/ ) There is a brace missing, should it look like this:

( $MATCH =~ /\[![0-9\.]+\]/ )

thanks