ソースを参照

Put decoding of encoded bodies back in after MIME rewrite. Still
missing a header->charset to get the charset support working again.

gustavf 25 年 前
コミット
2c5891c4e8
1 ファイル変更2 行追加1 行削除
  1. 2 1
      functions/mime.php

+ 2 - 1
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 .= "<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>";