procmail
[Top] [All Lists]

Re: what directory to put a server-wide .procmailrc file

2005-07-21 08:08:23
On Thu, Jul 21, 2005 at 09:29:24AM -0500, Brian Harrell wrote:

1. If it is possible, is there any special global variables
needed to put at the top of that file?

2. If not possible, how can I "include" or "call" a recipe within
my .procmailrc file so that others on my server can "include"
several spam recipes as needed or opt-out of them as they wish.

I don't understand your first question.  As to the second,
you could have users place a file in their $HOMEs if they want
to run the recipes.

   5:01pm [~/Mail] 882[0]> cat .opt-in 
  RUN_ANTISPAM=y



Then, in the /etc/procmailrc,

   INCLUDERC = $HOME/.opt-in

If it's not there, you'll get a "Couldn't read" error in the
log, but it won't do any harm.  If you don't like that,
though, well, you can run test:

  :0
  * ? test -r $HOME/.opt-in
  { RUN_ANTISPAM = y }

If the file was there, they must want to do it.


But if people are going to put a marker file in their dirs,
they might just as easily just put an INCLUDERC in their
.procmailrc, right?

Dallman

____________________________________________________________
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

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