« Off to DC in a few | Main | Getting started with FoaF »
July 08, 2003
Filtering Bug Reports from the MT Plugin Directory Bug Tracker
I love procmail. I just spent a few minutes playing around with my ~/.procmailrc file and now any bug reports I get from the MT Plugin Directory Bug Tracker are now placed into ~/Mail/bugs/Project Name.
Here is the relevant portion of my ~/.procmailrc file:
# Catch bug reports from bugs.mt-plugins.org
:0:
* ^From: plugins@mt-plugins\.org
{
:0 B
* ^Proje[ck]t: \/.+
bugs/`echo "$MATCH" | sed -e 's/ /_/g'`
}
And from my ~/.muttrc file to see all those mailboxes:
mailboxes `for file in ~/Mail/bugs/*; do echo -n "=bugs/$(basename $file) "; done`
Update: (2003-06-08 18:14)
Thanks go to Mike for the suggestion. So, here's the updated recipe:
# Catch bug reports from bugs.mt-plugins.org
:0:
* ^From: plugins@mt-plugins\.org
* B ?? ^Proje[ck]t: \/.+
bugs/`echo "$MATCH" | sed -e 's/[^-_A-Za-z0-9]/_/g'`
Posted by rayners at July 8, 2003 04:16 PM
Trackback Pings
TrackBack URL for this entry:
http://mt.rayners.org/mt-tb.cgi/223