Put decoding of encoded bodies back in after MIME rewrite. Still
authorgustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 10 Jul 2000 11:35:31 +0000 (11:35 +0000)
committergustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 10 Jul 2000 11:35:31 +0000 (11:35 +0000)
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

index 765e140d30fffd8c5de4af6fbb1d4c703b8c9fce..98c01ae44999c362bb9ee7599bd62daa3984a5c7 100644 (file)
 
       $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 .= "<SMALL><CENTER><A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$ent_num&mailbox=$urlmailbox\">". _("Download this as a file") ."</A></CENTER><BR></SMALL>";