[drupal-devel] Email filter

Mark Leicester mark.leicester at efurbishment.com
Sun Mar 13 12:05:31 UTC 2005


Hi all,

I've just committed an emailfilter module which interprets a node as a 
plain text email. Depending on its configuration, it will attempt to 
indent and colorise threaded conversations, convert URLs into anchors 
and remove any extra linebreaks. It will also convert &, <, > etc. into 
HTML entities.

You can see an example of its use here:
http://www.planetcocoon.com/

I'm using Drupal to collect email traffic to the Apache Cocoon mailing 
lists in an attempt to render it more attractively.

On another related topic, does anyone know how to tweak the mailhandler 
and listhandler to deal with the non-ASCII characters (such as ø, etc.) 
that come through in the usernames, subject lines and message bodies? 
At the moment these characters are all converted to ?. I've tried some 
experiments with drupal_convert_to_utf8() but I've had no luck so far.

As this is my first committed module, I'd appreciate some review; any 
feedback that people may have to offer would be gratefully received.

Regards,
Mark



More information about the drupal-devel mailing list