summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-03-14 21:11:32 +0000
committerroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-03-14 21:11:32 +0000
commit6eac53131558fbd939eb4ff1bdc0d09246ceb116 (patch)
treecdba789f132f2a5c8f6bc4fdddd64768d0948a8a
parent3309d5b7adb6a1f372bd0528ecdac3f2617d6f98 (diff)
Don't remove internal html tags in plaintext messages
git-svn-id: https://svn.roundcube.net/trunk@163 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/mail/func.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index dc510b059..865aff0bf 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/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";
}
}