delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/18/22:48:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 18 Jun 2004 21:49:06 -0500
From: Brian Ford <ford AT vss DOT fsi DOT com>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT 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 DOT GA29075 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT CYG DOT 4 DOT 58 DOT 0406181707520 DOT 3804 AT fordpc DOT vss DOT fsi DOT com> <Pine DOT CYG DOT 4 DOT 58 DOT 0406181816050 DOT 3572 AT fordpc DOT vss DOT fsi DOT com> <20040619021437 DOT GA30442 AT trixie DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019