BTW, while we're on the topic of SWITCHRC, here's how you'd deal with
bailing from procmail if SWITCHRC fails (rather than just continuing within
the rcfile, which is procmail's error mode):
# DROPPRIVS=YES depending on your intent
Which would cause procmail to BAIL in the event that the switched RCFILE
was unavailable. Remember, SWITCHRC isn't like INCLUDERC - invocation
isn't expected to return to this point in our rcfile if it's successful.
That depends on what one wants to happen if the target of SWITCHRC is
unavailable. Maybe one wants this:
# DROPPRIVS=yes # if warranted
SWITCHRC # bail with default delivery
If the first SWITCHRC assignment takes, the assignment of EXITCODE and
the unsetting of SWITCHRC won't happen.
procmail mailing list