procmail
[Top] [All Lists]

Re: MATCH

2001-10-20 00:08:25
On Fri, Oct 19, 2001 at 09:23:48PM -0500, Butch Evans wrote:
SUBJECT='pmtest|cybr|etc'
FROM='deliberatus(_at_)my995internet\(_dot_)com|foo(_at_)bar\(_dot_)org|etc'

Is there a benifit to this, other than readability of the recipe
itself?  I cannot imagine a real speed advantage.

Mostly that. It's also easier to tack a new clause onto $SUBJECT, without
messing with the recipe itself. Also, if you decide you want to use the same
parameters later, you can just reference the same variable, instead of typing
it all again (potentionaly incorrectly).

Speaking of that, can I do something like the following:

LOGFILE=/normal/log/file
VERBOSE=no 

:0
* condition
normal_mail

OLDLOG=$LOGFILE
LOGFILE=/speciallogfile
VERBOSE=yes
:0
* condition_for_trashing_mail
trashmailbox_or_dev/null
VERBOSE=no
LOGFILE=$OLDLOG

Yeah, should work fine.

-- 
Andrew Edelstein        -       andrew(_at_)pure-chaos(_dot_)com
http://andrew.pure-chaos.com

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>