Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 1997 11:30:40 -0700
From:      Scott Blachowicz <scott@bloke.statsci.com>
To:        The Hermit Hacker <scrappy@hub.org>
Cc:        questions@freebsd.org
Subject:   Re: Procmail rules for FreeBSD mailing lists... 
Message-ID:  <m0wHD04-000QdNC@bloke.statsci.com>
In-Reply-To: Your message of "Tue, 08 Apr 1997 02:18:21 -0300." <Pine.NEB.3.96.970408021404.344K-100000@thelab.hub.org> 
References:  <Pine.NEB.3.96.970408021404.344K-100000@thelab.hub.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
The Hermit Hacker <scrappy@hub.org> wrote:

> 	I'm not sure if this helps anyone, but I spent tonight refining
> my .procmailrc in order to clean it up, since I was having three rulesets,
> in some cases, in order to handle the FreeBSD mailing lists.

Or, in the interest of competitive fairness...:-))

A mailagent rule for both freebsd & netbsd lists into my MH folders:

    # FreeBSD/NetBSD.
    # 961104 - Just got a netbsd amiga with a header:
    #             Delivered-to: port-amiga-outgoing@netbsd.org
    # 961110 - and one with
    #             Return-path: port-amiga-owner-Scott.Blachowicz=seaslug.org@NetBSD.org
    Sender Delivered-to Resent-to Return-path:
        /\<?(((net|free)bsd)-)?([^@\s]+)-owner-Scott\.Blachowicz=seaslug\.org@([^\.]+\.)?(net|free)bsd\.org/i,
        /owner-(((net|free)bsd)-)?([^@\s]+)@([^\.]+\.)?(net|free)bsd\.org/i,
        /(((net|free)bsd)-)?([^@\s]+)-outgoing@([^\.]+\.)?(net|free)bsd\.org/i {
        UNIQUE (bsd);
        SAVE +lists/%6bsd/%4;
    };

Notes: That first regexp needs a little seasoning. If you tweak the regexp's 
watch out for the positional match numbers (%6 & %4).

Scott Blachowicz  Ph: 206/283-8802x240   Mathsoft (Data Analysis Products Div)
                                         1700 Westlake Ave N #500
scott@statsci.com                        Seattle, WA USA   98109
Scott.Blachowicz@seaslug.org





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0wHD04-000QdNC>