procmail
[Top] [All Lists]

Re: exit current script before end of aka goto|return|exit|jump

2005-02-04 14:03:19
Toen wij David W. Tamkin kietelden, kwam er dit uit:
Ruud:

Q: Why is there no need to write   SWITCHRC = "$HOME/.procmailrc"
A: Because "$HOME/.procmailrc" is already standing in line, waiting
 for /etc/procmailrc to finish.

Not only that!  If you write   SWITCHRC = "$HOME/.procmailrc"   and
somewhere in $HOME/.procmailrc or in a SWITCHRC called from it, the
user unsets SWITCHRC or sets it to /dev/null as an intentional quick
exit with a save to $DEFAULT, instead, procmail will go back to the
start of $HOME/.procmailrc.  You'd be setting up an unexpected
situation for the user.

Scary! Does that only apply to the /etc/procmailrc - $HOME/.procmailrc 
chain, or also in other circumstances?

-- 
Grtz, Ruud

____________________________________________________________
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