From owner-freebsd-hackers Tue Jun 4 16: 5:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 263D237B40B for ; Tue, 4 Jun 2002 16:05:19 -0700 (PDT) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.3/8.12.3) with ESMTP id g54N3l4j099349; Tue, 4 Jun 2002 16:03:51 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.3/8.12.3/Submit) id g54N2LHR099341; Tue, 4 Jun 2002 16:02:21 -0700 (PDT) (envelope-from dillon) Date: Tue, 4 Jun 2002 16:02:21 -0700 (PDT) From: Matthew Dillon Message-Id: <200206042302.g54N2LHR099341@apollo.backplane.com> To: freebsd-hackers@FreeBSD.ORG Cc: Giorgos Keramidas , Wilko Bulte , Brooks Davis , "Brandon D. Valentine" Subject: HEADS UP! COMMIT MESSAGE FILTERING AVAILABLE ON FREEFALL/HUB! 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 You can filter commit messages by creating a filter control file on freefall.freebsd.org in /home/dillon/filters. Create the file 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/. 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