# commitmsg.rc # gsutter@zer0.org # # procmail rules for dealing with freebsd commit mail # # $Id: commitmsg.rc,v 2.1 2003/08/18 07:04:17 gsutter Exp gsutter $ # To use: # # - Put commiturl.py in your $HOME/bin or adjust calling path below. # - INCLUDERC=commitmsg.rc in your .procmailrc. REPOS=(CVSROOT|doc|ports|projects|src|www) :0 * $ ^Sender:[ ]*owner-(freebsd-)?[a-z]+-(all|committers|${REPOS})@FreeBSD.ORG * ^Subject: cvs commit: { # tag with the correct portion of the tree :0 f * $ ^Subject: cvs commit: \/${REPOS} | formail -i "X-FreeBSD-CVS-Tree: $MATCH" # add PR and CVSweb urls to the bottom of each commit :0 bf | python $HOME/bin/commiturl.py }