procmail
[Top] [All Lists]

Re: procmailrc environment variables assistance

2010-06-27 10:43:21
At 16:18 2010-06-27 +0200, Hylton Conacher (ZR1HPC) wrote:

I have a file called procmailrc in my home directory but unfortunately
edited it without a backup copy. I would like to find out where I can
read about a list of the default and other environment variables

'man procmailrc' (and see the "see also" section in that manpage).

I am assuming, and hopefully not making an ass of myself, that once a
rule is inserted into the procmailrc file, procmail can be run on the
Inbox to process the email in it through the filters.

Depending upon the configuration of your host, procmail may already be invoked for local deliveries. If you don't have a .procmailrc (note the leading dot in the filename - it is significant), procmail will still run, it just won't do anything other than the default delivery.

The rules I have set-up so far are in a separate 30pg file and here,
after reading the man pages have done recipes with the necessary lines
of code, albeit that some of the matching rules need a syntax check.

You may want to set up a SANDBOX and throw some saved email at the filters first (being sure that your sandbox delivers to a different base directory and redefines $SENDMAIL and $DEFAULT so that already recieve mail doesn't re-enter your archives). I have a demonstration setup that you can find via the URL in my .sig.

I would suggest deploying only a few of the recipes into the sandbox at first, then when you've sorted through syntax issues with those (and propogated the learned corrections to your other recipes), consider testing with more of the recipes until you feel confident that they're doing what they should. You don't want to enable an untested .procmailrc on a live mailstream - doing so could lead to lost email if you have recipes that effectively discard messages.

---
 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 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>