In mailhandler_process_message() there's a line like:

if (!in_array($node->type, $vocabulary->nodes)) {

This assumes that $node->type is already known. It is known if we're using the default type or if the user enters their commands like:

type: blog
taxonomy: [foo]

but if the user enters commands like:

taxonomy: [foo]
type: blog

Then $node->type may not be correct. While this could be by-design, it may also be worth fixing so the interface does not require knowledge of the required order of commands. This is related to http://drupal.org/node/639830 since some pre-processing of the commands will be required in order to get the desired node type before anything else.

Comments

Ian Ward’s picture

Status: Active » Fixed

Applied a fix so that commands are grabbed, type is determined, node is prepared, and then finally the commands are executed on the node. http://drupalcode.org/viewvc/drupal/contributions/modules/mailhandler/ma...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.