summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-14 12:17:38 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-14 12:17:38 +0100
commit542f15bfece569ba3d07f57339aca22e535027dd (patch)
treec77e822171d59227a39aa8c378741b62b9ad2edb /program/steps/mail/func.inc
parent5c26bd49b10a2666df9e4853b0740038b0cc3b88 (diff)
Enriched content should be also converted to text if html is disabled
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 137e87d49..3aea6322e 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -707,7 +707,10 @@ function rcmail_print_body($part, $p = array())
+ $p + array('safe' => false, 'plain' => false, 'inline_html' => true));
// convert html to text/plain
- if ($data['type'] == 'html' && $data['plain']) {
+ if ($data['plain'] && ($data['type'] == 'html' || $data['type'] == 'enriched')) {
+ if ($data['type'] == 'enriched') {
+ $data['body'] = rcube_enriched::to_html($data['body']);
+ }
$txt = new rcube_html2text($data['body'], false, true);
$body = $txt->get_text();
$part->ctype_secondary = 'plain';