At first blush, this looks like a real useful module for mail handling in Drupal. Nice work ... I wonder if it shouldn't go directly into mailhandler.module? Do you see other uses beyond prettying up inbound email? If you get the UTF8 stuff worked out, please close this issue: http://drupal.org/node/4758. Again, I think that fix should wind back into mailhandler. CODE - you want to switch on $may_cache in emailfilter_menu(). your call to _head() is happenning twice right now. See docs for hook_menu(). On Mar 13, 2005, at 7:05 AM, Mark Leicester wrote:
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