commands in HTML text not proccessed.

haleagar - September 3, 2009 - 21:37
Project:Mailhandler
Version:6.x-1.8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

Ian Ward - November 22, 2009 - 20:20

It'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.

 
 

Drupal is a registered trademark of Dries Buytaert.