Mail Archives: cygwin/2004/06/18/22:48:13
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 -