What would be the best way to categorize incoming email (via the mailhandler module) with the appropriate taxonomy based on the subject line? I'm going to be recieving emails with a subject line format [List Name] : [Category] : [Post Title].
I would like drupal to automatically put the newly created node into the [Category] taxonomy and rename the node title to just [Post Title].
Any ideas on how to best approach this issue? I'm thinking of creating a custom node type which does the modifications and taxonomy changes within the insert hook.
The mailhandler commands aren't capable of handling anything of this level of complexity, are they?
A phptemplate modification could probably address modification of the title to remove the [List Name] : [Category] : bit, but I don't know of a simple way to categorize the module based on title.
Using the CCK module seems like another interesting approach, where the computed field module could be used to check if the title has been fixed yet (from [List Name] : [Category] : [Post Title] to just [Post Title], and if not then do the taxonomy addition and rename the module.