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

[email protected] (Alan Burlison) Mon, 21 Aug 2000 10:15:04 +0100
Newsgroups perl.bootstrap
Message-ID <[email protected]>
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