Date: Tue, 4 Jun 2002 16:02:21 -0700 (PDT) From: Matthew Dillon <dillon@apollo.backplane.com> To: freebsd-hackers@FreeBSD.ORG Cc: Giorgos Keramidas <keramida@ceid.upatras.gr>, Wilko Bulte <wkb@freebie.xs4all.nl>, Brooks Davis <brooks@one-eyed-alien.net>, "Brandon D. Valentine" <bandix@geekpunk.net> Subject: HEADS UP! COMMIT MESSAGE FILTERING AVAILABLE ON FREEFALL/HUB! Message-ID: <200206042302.g54N2LHR099341@apollo.backplane.com>
next in thread | raw e-mail | index | archive | help
You can filter commit messages by creating a filter control file on freefall.freebsd.org in /home/dillon/filters. Create the file <YOURUSERNAME> in /home/dillon/filters. Note that the only file the filter will recognize is your username. If the program becomes universal we will create a special userid on freefall allowing the sysads to create filters for mailing aliases as well (like 're'). /home/dillon/filters/<YOURUSERNAME>. MAKE SURE THE FILTER IS MODES 644 OR DFILTER WILL NOT BE ABLE TO READ IT! There is a sample filter in: /home/dillon/filters/SAMPLE /home/dillon/filters/dillon You can also look at my filter, but note that my filter is slightly more complex because I have to avoid creating a loop in my forward file :-) Still, it may be useful for you. Note that you will receive the original commit message as well as the filtered commit message. You need to use procmail to separate them. It's easy to do, though. The README and source for the program is shown below. Note that I am running this program under my user id, you do not have to setup a procmail filter or run this program yourself (except to test your filter), you can simply create the appropriate file in /home/dillon/filters. /home/dillon/dfilter/README This is VERY ALPHA. I am still working on some things such as properly emailing parse errors if your filter is broken. I wound up not using the perl script. I found a cvs diff generator that I had written a year or two ago and incorporated that into the filter program. Please test the filter. In particular note the variables you can do wildcard comparisons against, such as $INBODY and $DIFF. You can also do wildcard compares against mail headers. The filter is very powerful and will become even more powerful as I get feedback. -Matt 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?200206042302.g54N2LHR099341>