I have two different node types:
video
image
that I would like to simply message from my phone to one email address to be processed by mailhandler and post one of the two nodes.
Currently, this would require commands in the email.
Whereas, if there was a simple hook, called from say
mailhandler_node_prepare_message
before
// Set a default type if none provided
if (!$node->type) $node->type = mailhandler_default_type();
a node type could be determined from the mimeparts (if mimeparts, for instance, were passed to this method).
On the other hand, I think having a default node type per mailbox, like this request http://drupal.org/node/743466, may also solve the need and may be easier.
Comments
Comment #1
ilo commentedI do agree about the issue pointed: #743466: Content type default per mailhandler mailbox, you can do this easily by setting a default mailbox command 'type: whatever', and is already more flexible than the single mailbox property approach, as long as this way we don't need an issue for every node attribute that can be set as 'default'.
Setting default commands in the mailbox does not require to send any command in the email.
Thanks!