Skip to content

Commit

Permalink
Only flag plain-as-html if we aren't requesting TYPE_MIME.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 17, 2019
1 parent adc4576 commit 4f51b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Horde/ActiveSync/Imap/MessageBodyData.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ protected function _getParts()
$want_html_as_plain = true;
}


if (!empty($html_id) && $want_html_text) {
$html_body_part = $this->_basePart->getPart($html_id);
} elseif ($want_html_text) {
} elseif ($want_html_text &&
empty($this->_options['bodyprefs'][Horde_ActiveSync::BODYPREF_TYPE_MIME])) {
// Want HTML text, but do not have a text/html part.
$want_plain_as_html = true;
}
Expand Down

0 comments on commit 4f51b4c

Please sign in to comment.