Date: Sat, 1 Jun 2002 05:07:06 +0300 From: Giorgos Keramidas <keramida@FreeBSD.org> To: "Brandon D. Valentine" <bandix@geekpunk.net> Cc: Matt Dillon <dillon@FreeBSD.org>, freebsd-hackers@FreeBSD.org Subject: Re: Adding diffs to commit-mail on the fly Message-ID: <20020601020705.GC4572@hades.hell.gr> In-Reply-To: <20020531205015.R199-100000@leto.homeportal.2wire.net> References: <20020601011754.GA4357@hades.hell.gr> <20020531205015.R199-100000@leto.homeportal.2wire.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <cvs-all.FreeBSD.ORG> > | /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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020601020705.GC4572>