Re: anyone knowing procmail very good?
- From: Todd Zullinger <tmz@xxxxxxxxx>
- Date: Tue, 27 Jan 2009 14:16:05 -0500
Christoph Höger wrote:
Hi,
I have the following in .procmailrc:
(on a pretty bad administrated solaris box running procmail v3.22
2001/09/10)
#fedora-devel
:0
* ^Sender:.*fedora-devel-list-bounces@xxxxxxxxxx
* ^TO_fedora-devel-list@xxxxxxxxxx
fedora-devel
This works well in nearly all cases except for some announcements (e.g.
the "The fonts SIG irregular status report" mail from today)
Somehow those messages (although they contain Sender:
fedora-devel-list-bounces@xxxxxxxxxx) slip through that rule.
Why?
Without directly answering that question, I have found that using the
List-Id header is much nicer. And, it can be used to automatically
filter a lot of lists with one rule, rather than having separate rules
for each list. Here's an example to illustrate:
# automagically handle nice standards conforming mailing lists.
# taken from http://spacepants.org/conf/dot.procmailrc,
# where it was attributed to Jeff Waugh
:0
* ^List-Id: +\/.*
{
LISTID=$MATCH
:0
* LISTID ?? ^.*[<]\/[^@>\.]*
lists/$MATCH/
# the ^ * seems ineffective at removing spaces, best to be sure
# the initial pattern does this (e.g.: ^List-Id: +\/.*)
:0
* LISTID ?? ^ *\/[^@\.]*
lists/$MATCH/
}
# try to match List-Post headers
:0
* ^List-Post: *[<]mailto:\/.*
{
LISTPOST=$MATCH
:0
* LISTPOST ?? ^ *\/[^@]*
lists/$MATCH/
}
This handles most of my lists. Only a few that I want filtered into
mailboxes that don't match the name used in the List-Id or that don't
use a List-{Id,Post} header need explicit rules.
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Internet treats censorship as a malfunction and routes around it.
-- John Perry Barlow
Attachment:
pgppXtBOhlNfs.pgp
Description: PGP signature
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
- References:
- anyone knowing procmail very good?
- From: Christoph Höger
- anyone knowing procmail very good?
- Prev by Date: Adapter 2940 scsi card offlines scanner on boot
- Next by Date: Bluetooth is Temperamental
- Previous by thread: anyone knowing procmail very good?
- Next by thread: Re: anyone knowing procmail very good?
- Index(es):
Relevant Pages
|