I made a patch against mailhandler 6.x-1.8 to enable the commands in html email. I hope it is helpful to someone.

Thanks,

Sebastian

Comments

Ian Ward’s picture

Status: Active » Needs work

The main problem I see with this is that it no longer assumes commands will be on the first line of the body. This makes the distinction between an email without commands and an email with commands less clear, since commands could now be anywhere in the body (by allowing an arbitrary commands start line, and not assuming it's the first line). That said, there's already the assumption that the first line cannot start with a word followed by a colon unless it's supposed to be a command. The problem w/ stripping all tags from whole body before iterating is that it makes stripping the commands and signature from the body more difficult (line numbers are arbitrary). Maybe the only way around this is to allow specification of an optional commands delimiter.

Ian Ward’s picture

Title: patch: Commands Html Email » Commands in HTML emails not processed
Category: feature » bug

Marked http://drupal.org/node/567790 as duplicate.

cor3huis’s picture

Ramblings:
This is basically more an implementation issue. Using the body of the email for commands is a nice original design however brings along these indicated disadvantages. The email header is actually the place where such things belong. Here the difficulty is that most people have a hard time adjusting their email headers either manually or via a small script.

A HTML mail should actually also contain the plain mail and that is where the command should reside and picked up not from the HTML part, however also not easy for others to craft such an email

danepowell’s picture

Component: Code » Mailhandler
danepowell’s picture

Status: Needs work » Closed (won't fix)

Sorry, Mailhandler 6.x-1.x / 7.x-1.x are no longer supported. Please upgrade to 6.x-2.x / 7.x-2.x and re-open if still an issue. Thanks!