From http://drupal.org/node/26710

When mailhandler passes content, if the node type is set to flexinode-X, but there is no corresponding ctype_id also set to X, flexinode fails to properly handle it.

If we call a flexinode function and ctype_id is not set but is needed, and type is already set to flexinode-X, make the guess and set ctype_id correctly.

something similar to what node_import already does should work:

function flexinode_node_import_static($type) {
  global $user;
  $type = explode('-', $type);

  if ($type[0] == 'flexinode') {
    // Use the current user's information for importing stories.
    return array('ctype_id' => $type[1]);
  }
}

Comments

Bèr Kessels’s picture

Category: bug » feature

I am not sure if this can be considered a bug in flexinode, or one in mailhandler. For now, I am marking this a feature request for HEAD.
The HEAD does different typename parsing, so it can be fixed there. We dont add new features to a stable branch.