Closed (duplicate)
Project:
Mailhandler
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2009 at 21:37 UTC
Updated:
4 Dec 2009 at 13:00 UTC
Taxonomy Commands in plain text message processed, but the same message set to HTML they do not.
Viewing the raw message source they are still on a line by themselves in the correct format unmolested by HTML markup, where I would hope that they would still work.
Comments
Comment #1
Ian Ward commentedIt's likely there's some text at the beginning of the body, like HTML, that does not contain any colon ":", after which is your command, and therefore mailhandler is not finding the command because it stops checking for commands when it finds the first line in the message without a colon. Can you please paste here the full HTML of the message to verify this? I'm thinking a likely fix in mailhandler could be to strip the body of HTML tags before checking it for commands. Maybe it's necessary to replace br tags with \n tags, then strip the html.
Comment #2
Ian Ward commentedMarking this as a dupe of http://drupal.org/node/618690 even though this was first. See patch and discussion on http://drupal.org/node/618690