Re: [maildropl] Pattern matching
Brought to you by:
mrsam
From: Sam V. <mr...@co...> - 2006-08-23 10:16:12
|
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...@fo...", > should give me something like this in the log: > > MATCH: To: in...@fo..., MATCH1: in...@fo... 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. |