The .procmailrc

I hate quoting man pages, but this says it best. From the procmailrc man page:
	The rcfile can contain a  mixture  of  environment  variable
	assignments   (some   of  which  have  special  meanings  to
	procmail), and recipes.  In their  most  simple  appearance,
	the recipes are simply one line regular expressions that are
	searched for in the header of the arriving mail,  the  first
	recipe  that matches is used to determine where the mail has
	to go (usually a file).  If processing falls off the end  of
	the rcfile, procmail will deliver the mail to $DEFAULT.

Let's clarify this with an example.

Generally we begin every .procmailrc with variable assignments.
LOGFILE=$HOME/.maillog	# these two are very important
VERBOSE=no		# we'll cover it in the next slide

# you must explicitly set a path if you're gong to be spawing programs
PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin

# use one of the two below, NOT both
MAILDIR=$HOME/Mail	# use this one if you use elm, mutt
MAILDIR=$HOME/mail	# use this one if you use pine, imap

# After the inital mandatory variables we have our recipies.
# We will cover recipies in detail later.

:0
* ^TOfvwm
fvwm

Back: Seting up Procmail Top Next: mailstat

j g r o s s @ s t i m p y . n e t