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:Sam Varshavchik (mrs@courier-mta.com)
Date:Aug 23, 2006 3:15:41 am
List:net.sourceforge.lists.courier-maildrop

Will Hawes writes:

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

Not in the prehistoric version of maildrop that you are running, which uses a different syntax. The online man page reflect the current PCRE-based syntax.