Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 18 Jun 2004 21:49:06 -0500
From: Brian Ford <ford@vss.fsi.com>
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: announce -> cygwin mailing list gateway broken
In-Reply-To: <20040619021437.GA30442@trixie.casa.cgf.cx>
Message-ID: <Pine.CYG.4.58.0406182137150.4484@fordpc.vss.fsi.com>
References: <20040618160118.GA29075@trixie.casa.cgf.cx> <Pine.CYG.4.58.0406181707520.3804@fordpc.vss.fsi.com> <Pine.CYG.4.58.0406181816050.3572@fordpc.vss.fsi.com> <20040619021437.GA30442@trixie.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-IsSubscribed: yes

On Fri, 18 Jun 2004, Christopher Faylor wrote:

> I should have posted this before.
>
> Here's my procmail rule, fwiw:
>
> * ^Sender: cygwin-announce-owner-HAT-cygwin.*
> {
>         :0c
>         /var/spool/mail/cygwin-announce
>
>         :0c
>         /home/cgf/mail/cygwin-announce
>
>         SUBJECT=`/usr/bin/formail -xSubject:`
>         FROM0=`/usr/bin/formail -X'From '`
>         FROM1=`/usr/bin/formail -X'From:'`
>
>         :0fhbW
>         |formail -I '' \
>                  -I"$FROM0" \
>                  -I"$FROM1" \
>                  -I'To: cygwin-HAT-cygwin-PERIOD-com' \
>                  -I"Subject: [ANNOUNCEMENT]$SUBJECT" \
>                  -I'Reply-To: cygwin-HAT-cygwin-PERIOD-com'
>
>         :0
>         !cygwin-AT-cygwin-DOT-com
> }
>
> If yours looks similar to this, it should be ok.  If you got it right
> in one try, you're a better man than I.  :-)

Well, my first one was pretty simple:

:0
* ^TO_cygwin-announce
{
    :0 c:
    cygwin-announce

    :0
    !cygwin-AT-cygwin-DOT-com
}

I understand some of what yours is doing, and some I don't.  For now, I
made mine look like this:

    :0
    * ^TO_cygwin-announce
    {
        :0 c:
	cygwin-announce

	SUBJECT=`formail -xSubject:`
	FROM0=`formail -X'From '`
	FROM1=`formail -X'From: '`

	:0fhbW
	| formail -I '' \
	    -I"$FROM0" \
	    -I"$FROM1" \
	    -I'To: cygwin-AT-cygwin-DOT-com' \
	    -I"Subject: [ANNOUNCEMENT] $SUBJECT" \
	    =I'Reply-To: cygwin-AT-cygwin-DOT-com'

	:0
	!cygwin-AT-cygwin-DOT-com
    }

I'll make sure I understand the rest of this on Monday when I have a
better work environment.

> Thanks for doing this.  Could I get a gold star over here?

Um, no problem :-).

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

