Re: procmail receipes
On Thu, Aug 24, 2000 at 09:05:22PM -0700, Dale L . Morris wrote:
> I'm wondering if the syntax is correct. This is what I'm using
> for a procmail receipe:
>
> :0:
> * ^To_debian-user@lists.debian.org
> debian-user
scan the emails you want to group -- look at ALL the headers.
list managers usually add their own particular field in a
consistent fashion... the debian lists all include these two:
X-Mailing-List: <debian-SOMELIST@lists.debian.org> archive/latest/SOFORTH
X-Loop: debian-SOMELIST@lists.debian.org
you can depend on those to be in the headers if it's from
a debian list.
> Will it work?
the best way to find out is to find out. :)
here's what i've got, after seeing the quickstart guide
to procmail at www.ii.com-->directory-->filtering/procmail:
:0
* ^X-Loop: debian-.+@lists.debian.org
* ^X-Loop: debian-\/[^@]+
{ DN=`echo $MATCH | tr '[A-Z]' '[a-z]'` }
:0A:
debian-$DN
[any gurus out there cringing at this? feel free to enlighten!]
i subscribe to several debian lists, and this keeps them separate
...each in its own mailbox. debian-www, debian-user...
even when someone sends mail to 'DEBian-UsEr@lists.DEBIAN.org'
this recipe chain canonizes it to lowercase 'debian-user' ...!
very cool.
Reply to: