From owner-freebsd-hackers Fri May 31 19:22:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.comcast.net (smtp.comcast.net [24.153.64.2]) by hub.freebsd.org (Postfix) with ESMTP id 9626537B405; Fri, 31 May 2002 19:22:39 -0700 (PDT) Received: from leto (pcp529856pcs.nash01.tn.comcast.net [68.52.131.181]) by mtaout01.icomcast.net (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 13 2002)) with ESMTP id <0GX00086J99QZ4@mtaout01.icomcast.net>; Fri, 31 May 2002 22:22:39 -0400 (EDT) Date: Fri, 31 May 2002 21:18:08 -0500 (CDT) From: "Brandon D. Valentine" Subject: Re: Adding diffs to commit-mail on the fly In-reply-to: <20020601020705.GC4572@hades.hell.gr> X-X-Sender: bandix@leto.homeportal.2wire.net To: Giorgos Keramidas Cc: Matt Dillon , freebsd-hackers@FreeBSD.org Message-id: <20020531211416.J199-100000@leto.homeportal.2wire.net> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: >> | /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: | /path/to/filter/script :0: *^ List-Id: 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