procmail
[Top] [All Lists]

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

2005-02-04 07:18:38
Toen wij Robert Allerstorfer kietelden, kwam er dit uit:
J Britain:

Is there some way to exit the main /etc/procmailrc script early
(bypass further processing in that script) and continue in the
individual account RC scripts?

what about setting something like

DROPPRIVS = 'yes'
INCLUDERC = "$HOME/.procmailrc"

in '/etc/procmailrc', just before delivering to $DEFAULT?

Transferring control to the user's .procmailrc is already the 
'natural' way, so using INCLUDERC to mimic that seems strange.

If the user's .procmailrc does not exist or is not properly 
accessible, delivery to $DEFAULT is already taken care of 
(AFAIK).

With the INCLUDERC, if delivery to $DEFAULT fails, there could 
be 2 passes of ~/.procmailrc (although there are ways to prevent 
that, but that means more hoops).

So why not lay out /etc/procmailrc in a way that makes it 
ignore further recipes? Or use SWITCHRC?

Jim, what are the specific reasons to 'exit early'? Do they 
occur almost never, or are they part of the daily routine?
Are you familiar with the A and E flags? (as in :0A and :0E)
Are you familiar with the usage of curly brackets?

-- 
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