procmail
[Top] [All Lists]

Re: Using personal .procmailrc over global .procmailrc

2002-02-13 14:44:43
At 03:36 2002-02-14 -0500, Peter White wrote:
I am relatively new to Procmail, so excuse me if this question has been asked a million times before. Anyway, if a user has a .procmailrc file in their home directory I want Procmail to use that instead of the global .procmailrc. I have read discussions where people say it is possible, but I have been unable to find instructions on how to implement it.

You are aware that the user's own procmailrc is STILL executed, it's just executed AFTER the /etc/procmailrc (provided the /etc/procmailrc doesn't discard or otherwise deliver the message).

If you _really_ want user procmailrcs to override the /etc/procmailrc (or at least to take over at some certain stage within it), you could test for the user procmailrc existing:


# (adjust home path as necessary)
:0
* ? test ! -e /home/$LOGNAME/.procmailrc
{
        # conditions that get processed if the user
        # DOES NOT have a procmailrc.
}

As per my disclaimer (see .sig), this is untested and is offered for what it is worth.


---
 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(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail