Explorar o código

use 8bit content-transfer-encoding header when MDN contains 8bit symbols.
8bit symbols can be present, if interface uses translated strings. Fix for #934033

tokul %!s(int64=21) %!d(string=hai) anos
pai
achega
8b9751737c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/read_body.php

+ 2 - 0
src/read_body.php

@@ -203,6 +203,8 @@ function SendMDN ( $mailbox, $passed_id, $sender, $message, $imapConnection) {
                 $special_encoding = '7bit';
             }
         }
+    } elseif (sq_is8bit($body)) {
+        $special_encoding = '8bit';
     }
     $part1 = new Message();
     $part1->setBody($body);