procmail
[Top] [All Lists]

Simple INCLUDERC Question

1997-11-22 11:02:31
Hello all -

I am splitting up my .procmailrc file and am unclear on the flow control
of INCLUDERC.  Pardon my likely imprecise language -- but do INCLUDERC
statements function as a kind of "call" which returns control to the
"original" rc file if processing falls off the end of the included rc
file?  Or if processing falls off the end, does mail then get delivered
to $DEFAULT and processing stop?

What I would like to do is have a series of statements like:

     INCLUDERC=$PMDIR/.procmail_killrc
     INCLUDERC=$PMDIR/.procmail_friendsrc
     INCLUDERC=$PMDIR/.procmail_spamrc
     INCLUDERC=$PMDIR/.procmail_tmprc

in a file $PMDIR/.procmail_mainrc (that is included from ~/.procmailrc)
to process "related" recipes in turn, then (if not successful) pass
control to the next rc file until a successful delivering recipe is
executed or processing falls of the end of the _last_ INCLUDERC.  Is this
ok, or will these need to be "chained" together with an INCLUDERC to the
next file at the end of each one?

It probably doesn't matter for this question, but just in case, I am
working with two different versions at two different accounts.

$ procmail -v
procmail v3.11pre5 1997/04/03 written and created by Stephen R. van den Berg

$ procmail -v
procmail v3.11pre4 1995/10/29 written and created by Stephen R. van den Berg

Thanks for any help.

 - Don

____________________________
 Donald E. Hammond
 deh(_at_)openix(_dot_)com  (preferred)
 deh(_at_)ripco(_dot_)com
 103750(_dot_)645(_at_)compuserve(_dot_)com

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