After applying patch http://drupal.org/node/988856#comment-4903954 and flushing the cache a couple times, I am presented with a drop-down of relevant node reference fields in the Mapper. However, they do not save as part of node creation. The field's widget is a Nodereference URL, and I am using the Mailhandler fetcher/parser.
I am including the Headers processor and the Default commands processor. I added a new field a line below the "status" command called "ticket_id". This is a node reference field, so there is no default.
The email body looks like this:
this is text in the body
ticket_id: 2
--
email sig
Since my mapping is set and the node is created minus that mapped field, is this a bug related to Mailhandler, References, or Feeds? Or am I misunderstanding the UI of the Mailhandler parser screen, and the email body isn't actually parsed for the field I added in the list of commands?
Comments
Comment #1
danepowell commentedNot sure off-hand... my guess is that your syntax for the command is wrong. I know with other modules (i.e. prepopulate) the nodereference syntax is something like "name of node (nid:2)". You might try that.
If that doesn't work, I'll have to set this up for myself to test.
Comment #2
narayanis commentedI tried a slightly different approach this afternoon. When I put the commands on the first lines of the email, it works as expected. When I read through MailhandlerCommandsDefault.class.php, it looks like it should be searching the entire message body for commands, not just the first line.
I'm part of a volunteer IT helpdesk serving our region's nonprofits, and will combine this with Rules 2.x to send ticket notifications with reply-by-email functionality. My hope is to put commands at the bottom of the body where they aren't as noticeable by end users. When I can get this functional, I'm going to share an install profile (or feature) as a better alternative to mailcomment. Since comment is a universal entity, I can't separate internal/external notes with security or do the other cool stuff you can do with nodes.
Comment #3
narayanis commentedclosing this as working as designed, since mailhandler requires commands from the default processor to be on the first line.