[ILUG] Re: Filtering ILUG with procmail

From: Colin Whittaker (grimnar at domain redbrick.dcu.ie)
Date: Wed 29 Sep 1999 - 13:27:27 IST


John McDonnell blurted the following on Tue, Sep 28, 1999 at 05:54:47PM +0100 :
> evening folks.
> I've been filtering ILUG mail using
> * ^TOilug at domain linux.ie
>
> but some people (not looking at Ken Guest at all....) insist on sending
> stuff to ilug at domain csn.ul.ie or even ilug at domain skynet.csn.ul.ie so I reckon it's
> time to change my filtering method. It's been pointed out that the
> X-BeenThere header is the one to use but can anyone give me a procmail
> rule to do so?
> cheers,

:0
* ^X-BeenThere: ilug at domain linux.ie
{
        # Change the header.
        :0 hfw
        * ^Subject:[ ]+\[ILUG\][ ]+\/.*
        | formail -I"Subject: $MATCH"
                                                                                          
        :0 :.ilug
        lists/ilug-l
}

:0
* ^X-BeenThere: social at domain linux.ie
{
        # Change the header.
        :0 hfw
        * ^Subject:[ ]+\[ILUG-Social\][ ]+\/.*
        | formail -I"Subject: $MATCH"
                                                                                          
        :0 :.social-ilug
        lists/social-ilug
}

these are the 2 ruls i use to handle my ilug mail

-- 
Si hoc signum legere potes, operis boni in rebus Latinus alacribus et 
fructuosis potiri potes!


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:38 GMT