procmail
[Top] [All Lists]

Re: [soleil] - Unable to filter list

2001-08-01 00:54:12
* Andrew Edelstein <andrew(_at_)pure-chaos(_dot_)com> [20010801 09:51]: writing 
on the subject 'Re: [soleil] - Unable to filter list'
Andrew> On Wed, Aug 01, 2001 at 08:32:37AM +0300, Odhiambo Washington wrote:
Andrew> > I am subscribed to bind-users mailing list, which seems to have 
multiple
Andrew> > names. I must admit that all attempts at filtering mail from this list
Andrew> > into one folder has defeated me.
Andrew> > 
Andrew> > Here are some headers from that list:
Andrew> > 
Andrew> > Cc: comp-protocols-dns-bind(_at_)moderators(_dot_)isc(_dot_)org
Andrew> > To: bind-users(_at_)isc(_dot_)org
Andrew> > CC: dnsadmin(_at_)telocity(_dot_)net
Andrew> > 
Andrew> > _and_ this is what I've tried, and all the mail still end up in 
$DEFAULT
Andrew> > instead of BIND
Andrew> > 
Andrew> > :0:
Andrew> > * ^To:.*bind
Andrew> > * ^To:.*isc.org
Andrew> > * ^From(_dot_)*SW(_at_)bad\(_dot_)demons\(_dot_)com  # This guy sends 
to undisclosed-recipients
Andrew> > BIND
Andrew> 
Andrew> Instead of matcing on the To: field, since that comes from what the 
sender
Andrew> typed, try taking a look at the other headers. Try checking From_ (not 
From:),
Andrew> Sender:, Return-Path:, or possibly if it has any List- or X- headers. 
These
Andrew> will be added by the list software and should be consistent across all
Andrew> messages. For instance, THIS list might be "To:"
Andrew> procmail(_at_)informatik(_dot_)RWTH-Aachen(_dot_)de or 
procmail-users(_at_)procmail(_dot_)org, are at
Andrew> least 5 headers added by the list software that are unique to this, and 
always
Andrew> present in all mail from this list.

Hi Andrew,

Thanks for showing me the light. 
After blowing up the headers of those mails, I discovered that there are
some headers that are common to all regardless of the list name:

Sender: bind-users-bounce(_at_)isc(_dot_)org
Errors-to: bind-users-bounce(_at_)isc(_dot_)org
Precedence: bulk
List-unsubscribe: 
<mailto:bind-users-request(_at_)isc(_dot_)org?Subject=unsubscribe>
X-List-ID: <bind-users.isc.org>

So that makes sense.

Great help that was!


-Wash

--
Odhiambo Washington
Wananchi Online Ltd.,
wash(_at_)wananchi(_dot_)com 1st Flr Loita Hse.
Tel: 254 2 313985 Loita Street.,
Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE.

The true beloveds of this world are in their lover's eyes lilacs opening, ship 
lights, school bells, a landscape, remembered conversations, friends, a 
child's Sunday, lost voices, one's favorite suit, autumn and all seasons, 
memory, yes, it being the earth and water of existence, memory. 
-Truman Capote, "Other Voices, Other Rooms" 

Attachment: pgpdCDq7UVIeA.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>