procmail
[Top] [All Lists]

Re: Request for syntax assistance

2003-12-14 10:51:45
On Sun, 14 Dec 2003, Professional Software Engineering wrote:

At 21:54 2003-12-13 -0600, Nick wrote:
:0
* ? grep -F -i -x -q "$FROM" $HOME/.whitelist
SWITCHRC=$HOME/.procmailrc

I'd advise if you're going to do this, do:

* conditions
{
         DROPPRIVS=YES
         SWITCHRC=$HOME/.procmailrc
}

Dropping privileges is definitely good advice, but isn't there a danger
here that $HOME/.procmailrc is going to be executed twice?  SWITCHRC will
cause procmail to read the new file "as if" it were still reading the 
/etc/procmailrc, and then when it finishes it'll continue with the normal
execution of the user's .procmailrc.  Ooops.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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