Viewing filtered mailing lists on Bloglines

There are a lot of mailing lists out there that occasionally discuss an area of interest, but don’t necessarily have a great signal-to-noise ratio. I generally want to filter them by either sender or for keywords in the body, and trash the rest of the messages. I also prefer to have the filtered messages forwarded to a Bloglines email subscription, where they fit in nicely with the rest of my RSS feeds. (The only downside to this approach is that Bloglines doesn’t thread messages, but that tends not to be important since I’m just pulling out certain messages anyway.)

Here are the procmail scripts that let me do this. Note that Bloglines should really add this filtering capability directly as part of the their aggregation services.

I’m watching the development of the new git source code management system by the Linux kernel hackers.

This rule fires on mail from that list, forwards mail from any of 3 posters who tend to be particularly insightful, and trashes the rest:

:0
* ^X-Mailing-List:.*git@vger\.kernel\.org
  {
   :0
   * ^From:.*torvalds@osdl\.org|\
     ^From:.*junkio@cox\.net|\
     ^From:.*pasky@ucw\.cz
   ! dankohn.1234567@bloglines.com

   :0
   /dev/null
  }

This one looks for certain words in the body of messages to a Yahoo Group and forwards them to two different Bloglines accounts:

:0
* ^List-Unsubscribe:.*<mailto:groupname-unsubscribe@yahoogroups\.com>
  {
   :0
   * B ?? word1|word2|word3
   ! dankohn.7654321@bloglines.com, otherperson.9876543@bloglines.com

   :0
   /dev/null
  }