From owner-freebsd-hackers Fri May 31 19: 7:35 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 ECE1A37B404; Fri, 31 May 2002 19:07:29 -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 g5127BKT018588; Sat, 1 Jun 2002 05:07:20 +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 g51279e7011944; Sat, 1 Jun 2002 05:07:09 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g51277MH011939; Sat, 1 Jun 2002 05:07:07 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Date: Sat, 1 Jun 2002 05:07:06 +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: <20020601020705.GC4572@hades.hell.gr> References: <20020601011754.GA4357@hades.hell.gr> <20020531205015.R199-100000@leto.homeportal.2wire.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020531205015.R199-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 20:53 -0500, Brandon D. Valentine wrote: > On Sat, 1 Jun 2002, Giorgos Keramidas wrote: > > >Given a script in Perl or awk > >or whatever that works like this one, how would you all integrate this > >with procmail to let it filter all the commit mail of FreeBSD? > > Assuming your script works, here's the procmail hoodoo: > > :0 fw > * ^List-Id: > | /path/to/filter/script > > Insert this rule into your .procmailrc anywhere above where you actually > filter cvs-all to a specific folder. 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: :0 H * ^sender: owner-cvs-all@freebsd.org | /path/to/filter freebsd-cvs-all But 'm not sure if this will let procmail lock the folder properly. My intention was to add something like: :0 H * ^sender: owner-cvs-all@freebsd.org * ! ^X-inline-diff: yes | /path/to/filter | formail -I 'X-Inline-Diff: yes' -s procmail :0 H * ^sender: owner-cvs-all@freebsd.org freebsd-cvs-all Reading up my formail/procmail manpage helped a bit. Off to yet more testing :) - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message