7 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Pattern matching
FromSent OnAttachments
Will HawesAug 23, 2006 2:42 am 
Thorsten HaudeAug 23, 2006 3:01 am 
Sam VarshavchikAug 23, 2006 3:15 am 
Will HawesAug 23, 2006 3:17 am 
Thorsten HaudeAug 23, 2006 3:31 am 
Mike LeoneAug 23, 2006 9:21 am 
Peter MannAug 23, 2006 9:48 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] Pattern matchingActions...
From:Thorsten Haude (list@thorstenhau.de)
Date:Aug 23, 2006 3:01:32 am
List:net.sourceforge.lists.courier-maildrop

Hi,

* Will Hawes wrote (2006-08-23 10:43):

From my interpretation of the .mailfilter docs, the following in a .mailfilter file:

if( /^To: (.*)/ ) { log "MATCH: $MATCH, MATCH1: $MATCH1" }

when matched against a message header such as "To: in@foobar.com", should give me something like this in the log:

MATCH: To: in@foobar.com, MATCH1: in@foobar.com

However, it actually gives me this:

MATCH: To: in@foobar.com, MATCH1:

I can't find MATCH1 in my maildropfilter manpage. From a quick glance, it might work like this:

if (/^To: !.*/) { log "MATCH: $MATCH, MATCH2: $MATCH2" }

Thorsten