develooper Front page | perl.bootstrap | Postings from August 2000

Re: A procmail rule to filter perl.org messages.

Thread Previous | Thread Next
From:
Alan Burlison
Date:
August 21, 2000 02:15
Subject:
Re: A procmail rule to filter perl.org messages.
Message ID:
39A0F318.4232DDF0@uk.sun.com
Jacob Davies wrote:

> Here's what I came up with for a first pass at it:
> 
>         LOGFILE=$HOME/.procmail-log
>         MAILDIR=$HOME/Mail
>         VERBOSE=on
> 
>         :0:
>         * ^X-Mailing-List: contact \/(.*)-help
>         $MATCH

[snip]

> If someone has a finer-tuned rule than this, excellent, send it on in!

Here's what I use:

PERL_LIST='(perl|bootstrap|scripts)[^@,;= ]*'
:0 Wh: .perl-lists.lock
* $ ^TO_\/${PERL_LIST}@perl\.org
* MATCH ?? ^^\/[^@]+
| formail -D 8192 .perl.msgid
        :0 e:
        perl-lists/$MATCH

This has the advantage of eliminating duplicates as well.

Alan Burlison

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About