From 8a8387dfde3765a3cc221d7fc5960c0f46fca1cb Mon Sep 17 00:00:00 2001 From: gustavf Date: Mon, 10 Jul 2000 11:35:31 +0000 Subject: [PATCH] Put decoding of encoded bodies back in after MIME rewrite. Still missing a header->charset to get the charset support working again. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@607 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/mime.php b/functions/mime.php index 765e140d..98c01ae4 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -428,11 +428,12 @@ $ent_num = findDisplayEntity ($message); $body = mime_fetch_body ($imap_stream, $id, $ent_num); + $body = decodeBody($body, $message->header->encoding); // If there are other types that shouldn't be formatted, add // them here if ($message->header->type1 != "html") { - $body = translateText($body, $wrap_at, $charset); + $body = translateText($body, $wrap_at, $message->header->charset); } $body .= "
". _("Download this as a file") ."

"; -- 2.25.1