Posted by jimtobias on February 8, 2010 at 5:17pm
I'm working on a site that will take certain email traffic and publish it for categorization, FAQing, and commenting. I'd like to have an arriving email trigger an "assignment editor" function, and actually parse the email so the sender, date, etc. show up in fields, and the main content is ready to process. The assignment editor throws it out if it's irrelevant, or assigns it to an editor for further processing and tracking.
Any ideas on how to implement this? Thanks in advance.
Comments
Aside from writing code in
Aside from writing code in your own module, it's possible to do this using a combination of existing modules. Mailhandler can convert email to nodes, Workflow can manage who gets to see the node in different stages, and Rules can supply some extra coding around the triggers like node creation or update.
Not sure how complicated your parsing is; sender and date can be handled by mailhandler. If it's more complicated, like pulling info out of the message/body of the node and filling/changing cck fields, it will require a bit of code. If you could express it in a custom action, then you can use Rules (or even triggers) to carry it out. Otherwise you'd catch the node 'presave' action in hook_nodeapi() in a module.