Procmail recipe needed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, Chuck has already supplied the instructions for how to specify what procmail calls a "recipie." All I want to add is another way of managing
recipies.

Here's my .procmailrc file from my $HOME:

#Set on when debugging
VERBOSE=off
#Directory for storing procmail log and rc files
PMDIR=$HOME/mail/.procmail
LOGFILE=$PMDIR/log
#     INCLUDERC=$PMDIR/rc.test
INCLUDERC=$PMDIR/rc.lists
INCLUDERC=$PMDIR/rc.kills
INCLUDERC=$PMDIR/rc.playsound

It's just a way of splitting the recipies off the mail rc file. In the instance of Bill's question, the recipie would go into rc.kills, which happens to
be the file I use for sending things to /dev/null.

Not a necessary approach, but one I find useful. Your mileage may vary.

Charles Hallenbeck writes:
> From: Chuck Hallenbeck <chuckh at mhonline.net>
> 
> Bill,
> 
> If you do not presently have a .procmailrc file, create one with
> something like the following, which I will explain in a minute.
> If you do already have such a file you could put this at the very
> top of it without harm.
> 
> ----------
> :0:
> * ^.*exchange.proclaimmedia.com
> {
> | play /usr/local/etc/flush.wav
> $HOME/mail/spam
> }
> ----------
> 
> There are six lines above. The first one defines a new recipe. It
> ends with ":" to invoke the locking mechanism. You could omit
> that perhaps.
> 
> The second line is one you will want to change. It begins with a
> "*" and the rest of the line is a regular expression that will be
> searched for in the headers of your incoming mail. Look into
> those headers and find some identifying phrase for your outlaw
> express crap.
> The third line and the sixth line are braces which enclose the
> action to be taken if the condition in line two turns out to be
> true. The fourth and fifth lines are the action. In my case the
> fourth line plays the sound of a flushing toilet and the fifth
> line delivers the offending mail to a folder called "spam" in my
> pine mail directory. You will want to modify those lines too. If
> you only want one action to be taken if the condition is met you
> can skip the enclosing braces and have just the single line
> action following the single line condition.
> 
> HTH
> 
> Chuck
> 
> 
> 
> On Wed, 18 Dec 2002, William F. Acker WB2FLW +1-303-777-8123 wrote:
> 
> > Hi all,
> >
> >      In all the years I've been on the Internet, I can't think of a time
> > when I was glad I had received mail that was sent from a Microsoft client.
> > Would a procmail expert, Janina?, tell me what to put into my .procmailrc
> > file so that the lookout excuse junk goes by-bye?
> >
> >           TIA.
> >
> >
> >
> 
> -- 
> The Moon is Full
> So visit me sometime at http://www.mhonline.net/~chuckh
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
	
				Janina Sajka, Director
				Technology Research and Development
				Governmental Relations Group
				American Foundation for the Blind (AFB)

Email: janina at afb.net		Phone: (202) 408-8175




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux