procmail
[Top] [All Lists]

Re: Using personal .procmailrc over global .procmailrc

2002-02-13 21:49:01
David W. Tamkin wrote:

In /etc/procmailrc,

 :0
 * ? test -f $HOME/.procmailrc
 {
   DROPPRIVS=yes
   SWITCHRC=$HOME/.procmailrc
  }

Thing is, if you use the !, you don't have to include the above two lines
in the recipe, and you can just have the default behavior be the "Right
Thing", which ... appeals to me more.

        :0
        * ! ? [ -f $HOME/.procmailrc ]
                {
                # stuff to do if there is NOT a $HOME/.procmailrc
                }

        # if there was no delivering rule...
        # then privs will be dropped,
        # and the user's .procmailrc will now be invoked.

BTW, "[" == "test".

Of course, determining $HOME could get tricky, seeing as it isn't set up
at that point, methinks. But ICBW.

Aloha mai Nai`a!
-- 
"Please have your Internet License             http://kapu.net/~mjwise/
  and Usenet Registration handy..."

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