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: 
> * [EMAIL PROTECTED] 
> 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: <[EMAIL PROTECTED]> archive/latest/SOFORTH
X-Loop: [EMAIL PROTECTED]

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: [EMAIL PROTECTED]
        * ^X-Loop: debian-\/[EMAIL PROTECTED]
        { 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 via email to