Procmail Recipes - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

Chapter 11. Email
MAILDIR=$HOME/Msgs INCLUDERC=$MAILDIR/lists.rc INCLUDERC=$MAILDIR/spam.rc
If the user wants to turn off Procmail filtering of their email lists but leave spam control in
place, they would comment out the first
— Sets the amount of time, in seconds, between attempts by Procmail to use a
LOCKSLEEP
particular lockfile. The default is eight seconds.
— Sets the amount of time, in seconds, that must pass after a lockfile was last
LOCKTIMEOUT
modified before Procmail assumes that the lockfile is old and can be deleted. The default is
1024 seconds.
— The file to which any Procmail information or error messages are written.
LOGFILE
— Sets the current working directory for Procmail. If set, all other Procmail paths are
MAILDIR
relative to this directory.
— Specifies the original mailbox, or another place to put the messages if they
ORGMAIL
cannot be placed in the default or recipe-required location.
By default, a value of
— Sets the amount of time, in seconds, that Procmail pauses if a necessary
SUSPEND
resource, such as swap space, is not available.
— Allows a user to specify an external file containing additional Procmail recipes,
SWITCHRC
much like the
INCLUDERC
referring configuration file and only the recipes on the
— Causes Procmail to log more information. This option is useful for debugging.
VERBOSE
Other important environmental variables are pulled from the shell, such as
the login name;
, which is the location of the home directory; and
HOME
default shell.
A comprehensive explanation of all environments variables, as well as their default values, is
available in the
procmailrc

4.2. Procmail Recipes

New users often find the construction of recipes the most difficult part of learning to use
Procmail. To some extent, this is understandable, as recipes do their message matching using
regular expressions, which is a particular format used to specify qualifications for a matching
string. However, regular expressions are not very difficult to construct and even less difficult to
understand when read. Additionally, the consistency of the way Procmail recipes are written,
regardless of regular expressions, makes it easy to learn by example. To see example Procmail
recipes, refer to
Section 4.2.5, "Recipe
202
INCLUDERC
/var/spool/mail/$LOGNAME
option, except that recipe checking is actually stopped on the
man page.
Examples".
line with a hash mark character (
is used.
-specified file are used.
SWITCHRC
LOGNAME
SHELL
).
#
, which is
, which is the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 4.5.0 and is the answer not in the manual?

Questions and answers

Table of Contents