1 message in net.sourceforge.lists.courier-maildrop[maildropl] problem with expression
FromSent OnAttachments
Mathias BehrleOct 28, 2003 2:12 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] problem with expressionActions...
From:Mathias Behrle (math@freenet.de)
Date:Oct 28, 2003 2:12:39 am
List:net.sourceforge.lists.courier-maildrop

Hi all,

I want to generate automatically the appropriate maildirs for new mailing lists and also deliver automatically to these maildirs.

The expression in .mailfilter is: (lines are wrapped)

if (( /^List-Id:.*<![:alnum:]*\-?[:alnum:]*\-?[:alnum:]*\-?[:alnum:]*!.*>/ || /^X-list: ![:alnum:]*/ || /^Mailing-List: contact![:alnum:]*\-?[:alnum:]*!-help@.*/ || /^Mailing-List: list![:alnum:]*\-?[:alnum:]*!@.*/ || /^Sender: owner\-![:alnum:]*\-[:alnum:]*!@cyrusoft.com/ || /^List-Post:<mailto:![:alnum:]*/) && !/^X-Spam-Status: Yes.*/ ) {

exception { log "------------------------------------------------ delivery of mailing-list to $MD/.${LISTS_FOLDER}.${MATCH2}/"

to "$MD/.${LISTS_FOLDER}.${MATCH2}/"}

exception { logfile $HOME/mailfilter2.log

log "------------------------------------------------- delivery to new listserv folder: ${LISTS_FOLDER}.${MATCH2}"

`maildirmake -f ${LISTS_FOLDER}.${MATCH2} ${HOME}/Maildir/`

`echo Created ${LISTS_FOLDER}.${MATCH2} in ${HOME} | mail -s 'new listserv folder created' ${LOGNAME}`

to "$MD/.${LISTS_FOLDER}.${MATCH2}" } }

Both parts of the expression work, but if the first part was matched (delivery to an existing maildir), maildrop continues despite the to statement instead of exiting as usually. In my understanding maildrop should only continue, if the exception were raised, but not in any case.

I am using maildrop 1.3.7 on Debian woody with postfix. (maildrop 1.3.7 Copyright 1998-2001 Double Precision, Inc. GDBM extensions enabled. Maildir quota extension enabled.)

Tanks for any hints, Mathias