Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2002 21:18:08 -0500 (CDT)
From:      "Brandon D. Valentine" <bandix@geekpunk.net>
To:        Giorgos Keramidas <keramida@FreeBSD.org>
Cc:        Matt Dillon <dillon@FreeBSD.org>, freebsd-hackers@FreeBSD.org
Subject:   Re: Adding diffs to commit-mail on the fly
Message-ID:  <20020531211416.J199-100000@leto.homeportal.2wire.net>
In-Reply-To: <20020601020705.GC4572@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 1 Jun 2002, Giorgos Keramidas wrote:

>On 2002-05-31 20:53 -0500, Brandon D. Valentine wrote:
>> Assuming your script works, here's the procmail hoodoo:
>>
>> :0 fw
>> * ^List-Id: <cvs-all.FreeBSD.ORG>
>> | /path/to/filter/script
>
>The problem with this is that I would have to hardwire the output
>folder name to the script, or pass it as a parameter.  I've found two
>answers until now, by reading my manpages [beats head]. One is:

Nonsense.  With the rule I gave you your script should take the message
on stdin, modify it, and spit it back out on stdout where it will
continue to fall through the procmail rules.  That's what the 'f' option
at the start of the rule is all about.  You end up with two succesive
rules like this:

:0 fw
* ^List-Id: <cvs-all.FreeBSD.ORG>
| /path/to/filter/script

:0:
*^ List-Id: <cvs-all.FreeBSD.ORG>
cvs-all

Make sense?

Brandon D. Valentine
-- 
http://www.geekpunk.net                         bandix@geekpunk.net
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<+++++>-]<+.+++++++..++
+.>>+++++[<++++++>-]<++.<<+++++++++++++++.>.+++.------.--------.>+.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020531211416.J199-100000>