summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-03-14 21:11:32 +0000
committerthomascube <thomas@roundcube.net>2006-03-14 21:11:32 +0000
commita2f2c5e1b7c8ed6d398eb6fd751f94553fa7d38e (patch)
tree8ebc65d017760068d101b0254f584d709a80c71e /program/steps/mail/func.inc
parent01c86f2e7c9eb4f2dff6d670ea8f36c431b9b476 (diff)
Don't remove internal html tags in plaintext messages
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index dc510b059..865aff0bf 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1010,7 +1010,12 @@ function rcmail_message_body($attrib)
// $body = rcmail_print_body($part['body'], $part['ctype_primary'], $part['ctype_secondary'], $part['encoding'], $safe_mode);
$body = rcmail_print_body($part, $safe_mode);
$out .= '<div class="message-part">';
- $out .= rcmail_mod_html_body($body, $attrib['id']);
+
+ if ($part['ctype_secondary']!='plain')
+ $out .= rcmail_mod_html_body($body, $attrib['id']);
+ else
+ $out .= $body;
+
$out .= "</div>\n";
}
}