Steve Fink wrote:
> 
> (Off-topic for this list, but I'm not sure where else to send it)
> 
> Could we have a discussion somewhere of useful filtering rules for all
> these perl6 lists? Specifically, I'm looking to steal other people's
> .procmailrc snippets. I imagine that a lot of people have written their
> own, and everything I do in that @#$!! config language breaks the first
> four times I try it (partly because my mail directory is NFS mounted in
> a place where NFS locks permanently hang any process attempting to use
> them).

Here's what I use.  This works for all the lists I subscribe to from
perl.org, i.e. p5p as well as the p6 ones.  p5p doesn't appear to have
the nice 'X-Mailing-List-Name' header, so this rule doesn't use it.  I
subscribe to perl6-all, and this rule will automagically create new
folders as the new lists appear.  My mail directory is NFS mounted as
well, and I don't have any problems.  I also have a hacked-up script
called 'prunemail' that will trim folders to either a given length, or
discard messages older than a given date.  It will also optionally mark
unread messages as read when it is run.

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

Alan Burlison

Reply via email to