Other nifty stuff

Here's some other nifty stuff, mostly out of my own .procmailrc. For those of you with email pagers this rule uses the digest function of formail to grab the correct From: header out of your cc's. I love it becuase I can reply to my epages.
:0
* ^From: CCSO Email to Pager Gateway <epage@ux2.cso.uiuc.edu>
{
	:0fc
	| formail +1 -ds

	:A
	epage
}


# I really hate autoresponders on uiuc.test so let's forward their # news admin a copy of every message they autorespond to. # interestingly enough, it only took two days or so of the TEST people # using this procmail recipe for them to stop the autoresponder :) :0 * From: INS Autoresponder { # Here we simply add a few extra headers :0fc | formail -I "X-Hoser: I hate autoresponders" \ -I "X-Inquisition: Confess!" # Then we bounce the autoresponder to their news admin :0 ! usenet@newsrelay.netins.net }
# Append the date to the end of a file so we can use our # Nifty perl scripts # to do statistics on incoming mail times :0ci | echo `date` >> $HOME/.maildate
# the sun-managers mailings list has a lot of discussion that I don't # care about. All I care about is the summaries people tend to post # after they get their problem solved. They almost always use a subject # of Summary: # The first rule will save a copy of sun-managers mai # if it's a summary or a FAQ posting. :0 * ^TOsun-managers.* * ^Subject: (summary.*)|(.*Frequently Asked Questions.*) sun-managers # This one will throw out everything else :0 * ^TOsun-managers.* /dev/null

Procmail also can deal with some pretty advanced stuff with lockfiles and such for simultaneous mail processing. You can optionally egrep the body instead of just the headers. There are a lot more options, variables, and tricks to procmail than you will possibly ever use.

If you're thinking of using procmail you should READ THE MANPAGES

I will take no responsibility for those who mess up and accidently delete all their mail.
You can also join the procmail mailing list (written in procmail, of course)
       There  exists  a mailinglist for questions relating to any
       program in the procmail package:
              
                     for submitting questions/answers.
              
                     for subscription requests.

       If you would like to stay informed about new versions  and
       official patches send a subscription request to
              procmail-announce-request@informatik.rwth-aachen.de
       (this is a readonly list).

Back: Running your own mailing lists Top Next: Special notes for MH users

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