procmail
[Top] [All Lists]

Re: How to subvert global procmailrc

2004-11-15 16:01:52
On Mon, Nov 15, 2004 at 03:49:31PM -0500, Jake Di Toro wrote:
This is the last recpie in my /etc/procmailrc

:0 w
* ? test ! -e $HOME/.procmailrc
| $DELIVER $LOGNAME

Looks good.  As Bart pointed out, you could do it with
an attempted SWITCHRC instead.

If you do it this way, supposing the user has mistakenly
chmodded his .procmailrc to u-r, it won't get run and the
mail might get lost this way.  Moreover, if the user has
mistakenly granted unacceptably broad fileperms, the .procmailrc
also won't run, I believe.

So you might at least want to change the -e flag to -r
for test.

-- 
dman

____________________________________________________________
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