Hey all,

Here's my .procmailrc chunks relevant to filtering -commits. I've got 
some for filtering specific to developers and some for 
categories/packages. It also has a nice bit that cuts out everything 
that isn't an ebuild bump (aka keywording and such).

Thanks,
Donnie
# this is my .procmailrc, taken from robbat2's found at:
# http://www.orbis-terrarum.net/~robbat2/sample.procmailrc

# Preliminaries
SHELL=/bin/sh
MAILDIR=$HOME/.maildir
DEFAULT=${MAILDIR}/
LOGFILE=${MAILDIR}/procmail.log
LINEBUF=4096
FORMAIL=/usr/bin/formail
SPAMC=/usr/bin/spamc
SPAMC_FLAGS=" -s 2048000 -f "
VERBOSE=no
COMSAT=no
n="
"
LOG="--- Logging ${LOGFILE} for ${LOGNAME}${n}"

# custom shortcuts
HDR_ML="^((X-)?(BeenThere|List-Id|Mailing-List):)(.*\<)?"
HDR_FROM="^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender):)(.*\<)?"
HDR_CMTR="^(X-VCS-Committer:)(.*)?"
HDR_DIRS="^(X-VCS-Directories):(.*)?"
HDR_SUBJECT="^(Subject):(.*)?"

:0
* $ $HDR_ML.*gentoo-commits\.gentoo\.org
{
        :0:
        * $ $HDR_CMTR.*dberkholz
        .linux.gentoo.commits.me/

        :0:
        * $ $HDR_CMTR.*je_fro
        .linux.gentoo.commits.je_fro/

        :0:
        * $ $HDR_CMTR.*battousai
        .linux.gentoo.commits.batt/

        :0
        * $ $HDR_DIRS.*x11-(base|proto|drivers|apps|libs/lib)
        {
                :0B:
                * $ Added.*ebuild
                .linux.gentoo.commits.x11/
        }

        :0
        * $ $HDR_DIRS.*(media-libs/(mesa|freeglut|glut)|app-doc/xorg)
        {
                :0B:
                * $ Added.*ebuild
                .linux.gentoo.commits.x11/
        }

        :0
        * $ $HDR_DIRS.*system-config
        {
                :0B:
                * $ Added.*ebuild
                .linux.gentoo.commits.s-c/
        }

        :0:
        * $ $HDR_DIRS.*eclass
        .linux.gentoo.commits.eclass/

        :0
        * $ $HDR_DIRS.*sci-chemistry
        {
                :0B:
                * $ Added.*ebuild
                .linux.gentoo.commits.chem/
        }

        :0
        * $ $HDR_DIRS.*sci-biology
        {
                :0B:
                * $ Added.*ebuild
                .linux.gentoo.commits.bio/
        }

        :0
        * $ $HDR_DIRS.*sys-cluster
        {
                :0B:
                * $ Added.*ebuild
                .linux.gentoo.commits.cluster/
        }

        :0
        * $ $HDR_SUBJECT.*gentoo-x86
        {
                :0B:
                * $ Added.*ebuild
                .linux.gentoo.commits/
        }

        # Dump the rest of the commits
        :0
        /dev/null
}

# Accept all the rest to your default mailbox
:0:
${DEFAULT}

Reply via email to