procmail
[Top] [All Lists]

Re: does procmail always use ~/.procmail

2008-12-06 11:48:08
At 08:49 2008-12-06 -0500, Charles Gregory wrote:

So to get a "fallback" effect use a condition at the start of
/etc/procmailrc that tests for the existence of users rc file and
either 'includes' it.... or bypasses all /etc/procmailrc code....

Including it would incur some security issues.


You could accomplish the OP's request with:


:0
* ? test -e $HOME/.procmailrc
{
        # ensure privleges are dropped, then terminate processing of this
        # rcfile (which should drop privs anyway, but I'm being retentive)
        DROPPRIVS=YES
        SWITCHRC=
}

# rest of actual /etc/procmailrc


---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

____________________________________________________________
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