From owner-freebsd-hackers Fri May 31 19:27:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id A810337B407; Fri, 31 May 2002 19:27:52 -0700 (PDT) Received: from hades.hell.gr (patr530-b212.otenet.gr [212.205.244.220]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g512RmKT027975; Sat, 1 Jun 2002 05:27:49 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g512Rme7013114; Sat, 1 Jun 2002 05:27:48 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g512RjZe013113; Sat, 1 Jun 2002 05:27:45 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 1 Jun 2002 05:27:45 +0300 From: Giorgos Keramidas To: "Brandon D. Valentine" Cc: Matt Dillon , freebsd-hackers@FreeBSD.org Subject: Re: Adding diffs to commit-mail on the fly Message-ID: <20020601022745.GA13090@hades.hell.gr> References: <20020601020705.GC4572@hades.hell.gr> <20020531211416.J199-100000@leto.homeportal.2wire.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020531211416.J199-100000@leto.homeportal.2wire.net> 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 2002-05-31 21:18 -0500, Brandon D. Valentine wrote: >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? Indeed. Brain cells shutting down already. I shouldn't read procmail rules after I get sleepy. The 'f' flag of procmail seems like, aw mee gods, so fine ;-))) - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message