7 messages in net.sourceforge.lists.courier-maildrop[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:[maildropl] Pattern matchingActions...
From:Will Hawes (in@whawes.co.uk)
Date:Aug 23, 2006 2:42:53 am
List:net.sourceforge.lists.courier-maildrop

whawes# maildrop -v maildrop 1.6.3 Copyright 1998-2003 Double Precision, Inc. Maildir quota extension enabled. Virtual user database via MySQL extension enabled. This program is distributed under the terms of the GNU General Public License. See COPYING for additional information.

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:

Maildrop is otherwise fully functional but despite having tried everything that springs to mind, I cannot get $MATCH1..$MATCHn to work at all. I'd be grateful for any pointers to what I'm doing wrong.