procmail
[Top] [All Lists]

Re: mailing list recipes

2003-06-04 14:47:26
On 04/06/03 13.53, Bryan Koschmann - GKT wrote:
On Wed, 4 Jun 2003, Birl wrote:

See the thread I started from May 27th:
    Filtering Yahoo! groups using $MATCH on subject line

I think that should answer your question.
As a Pine user myself, you may find that Pine does not do as well as
procmail.

Oops, sorry, that was my mistake, I misworded what I meant. I said catch
all, and I really just meant per list. Although reading through that
thread I could probably filter by List-ID: or something, right?

If you don't mind having the mailboxes named like the lists, this rule
should catch most lists:

:0
* ^(Mailing-List: |Sender: owner-|X-BeenThere: |Delivered-To: mailing-list 
|X-Mailing-List: <|X-Loop: |X-List-ID: <|X-list: |X-ML-Name: 
)\/[^(_at_)\(_dot_)]+
{
        LISTNAME=`echo $MATCH | sed -e 's/[\/]/_/g'`

        :0:
        lists/$LISTNAME
}

HTH.

/dossen
-- 
"Nuclear war can ruin your whole compile."
-- Karl Lehenbauer

Attachment: pgp1xdOkr2S9c.pgp
Description: PGP signature

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>