Great Circle Associates Majordomo-Users
(February 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Filtering out E-Mail Service Advertisementsh
From: Christopher Lindsey <lindsey @ ncsa . uiuc . edu>
Date: Thu, 26 Feb 1998 08:39:24 -0600 (CST)
To: greg @ vyger . net (Greg Blakely)
Cc: majordomo-users @ GreatCircle . COM
In-reply-to: <199802260143.TAA13865@vyger.net> from "Greg Blakely" at Feb 25, 98 07:41:18 pm

> I know I saw this asked recently, but I can't seem to find the question or
> the answer.  < GREP! GREP! GREP! >
> 
> I have an official mailing list that I host that looks quite tacky with the
> added baloney about getting free email from JUNO at the bottom of it.
> 
> Is there any way to filter out JUST the advertisement, and let the rest of
> the message through?

You could preprocess the messages before they go through resend in your 
aliases file:"

   yourlist         : "| myfilter | /usr/lib/mail/majordomo/wrapper/resend ..."

You could also call procmail, have that call a script that filters it, and
then push it through to resend (I prefer this method because it takes care
of extracting the message body, plus it's more extensible):

   yourlist         : "| /usr/bin/procmail -m /usr/lib/mail/majordomo/.procmailrc.yourlist"

.procmailrc.yourlist would look something like this:

   :0 Bfbwc
   | myfilter

   :0
   | /usr/lib/mail/majordomo/wrapper/resend ...

Chris


References:
Indexed By Date Previous: Re: [EXIM] majordomo?
From: Jeffrey Goldberg <J.Goldberg@Cranfield.ac.uk>
Next: Re: Reply-to?
From: Rich Pieri <rich.pieri@prescienttech.com>
Indexed By Thread Previous: Re: Filtering out E-Mail Service Advertisements
From: "Bob Bish" <bish@azstarnet.com>
Next: Domain
From: Paulo Brandao <pbrandao@ispgaya.pt>

Google
 
Search Internet Search www.greatcircle.com