Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Drupal Groups Email Filtering

Parent Feed: 

Many Drupal users and developers are members of groups.drupal.org and will be getting email from the site when people post new messages and replies to threads. Of these people, many probably also like to organise their email in folders, for easy reference in the future.

A common way to do this is by creating email filter rules that look at email subject lines or other headers and perform an action based on what these headers contain.

Email lists usually have a specific header, called List-Id, which (often) uniquely identifies the list an email came from. Many email programs have built-in filter rules for this header and thus allow you to easily create filter rules for mailing lists.

Emails from Drupal Groups - or rather, emails sent by Organic Groups, which is what powers Drupal groups - do not contain this header. That means you can't take advantage of mail program smarts that try to use the List-Id and have to filter on (part of) the subject line instead.

But wait, there is a solution, I made a patch! Issue #1490506 contains a patch that adds a List-Id header to emails sent by the og_notifications sub-module. Sadly it has been languising in the issue queue though.

So, if you'd like to use this feature to help organise email you get from GDO, please go and review the patch :-)

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web