On Fri, Jul 30, 2004 at 06:32:01PM -0600, Justin Gombos wrote:
I'm using the following (abridged) recipe for this list:
MAILMAN_ML=(procmail\.lists\.RWTH-Aachen\.DE)
YEAR=2004
# Mailman and ezmlm lists
#
:0
*$ ^List-Id:.*\/$MAILMAN_ML
* MATCH ?? ()\/[^\.]+
{
LISTNAME=`echo $MATCH | tr '[:upper:]' '[:lower:]'`
I'm not addressing the question you had, and David Tamkin already
did so in any case. But I want to say you should avoid the
shell calls when you don't need them, which could well be most
of the time.
The snippet that uses tr that I posted the other day went like
so:
:0 D # 040430 () normalize case of Return-Path
* RP ?? [A-Z]
{ rp = `echo "$RP" | tr '[:upper:]' '[:lower:]'` }
Notice the D flag on the recipe for case-sensitive parsing,
and the condition that must be passed before we descend to the
action line where we will be forced to throw out a shell.
The cost to test first is minimal. The cost of thousands of
needless shell calls is the opposite.
---
dman ("Save the MIPS!")
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail