From 7b9592dcd3734297b5f9a5bfd61c74c24e2b16f8 Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 20 Apr 2001 14:32:18 +0000 Subject: [PATCH] * Detects HTML mail if the entity id is 1.2 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1270 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 5958d90c..daae91b7 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -498,7 +498,8 @@ $textOnly == 0 && $next->header->type0 == "text" && $next->header->type1 == "html" && - $next->header->entity_id == 2 && + ($next->header->entity_id == 2 || + $next->header->entity_id == 1.2) && $message->header->type1 == "plain" && isset($show_html_default) && $show_html_default) @@ -553,7 +554,7 @@ translateText($body, $wrap_at, $body_message->header->charset); } - $body .= "
". _("Download this as a file") ."

"; + $body .= "
". _("Download this as a file") ."

"; /** Display the ATTACHMENTS: message if there's more than one part **/ $body .= ""; -- 2.25.1