Default Content-Transfer-Encoding is now RFC-compliant "7bit" instead of "us-ascii...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 2 Apr 2009 00:39:15 +0000 (00:39 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 2 Apr 2009 00:39:15 +0000 (00:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13501 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Message.class.php
src/download.php
src/read_body.php

index e19b2e9d9c10721807c8ebea74083d5c96ffc1a1..1578b8eb9cfc976a7bb2f6d80587353230b060df 100644 (file)
@@ -357,7 +357,7 @@ class Message {
                                 $hdr = new MessageHeader();
                                 $hdr->type0 = 'text';
                                 $hdr->type1 = 'plain';
-                                $hdr->encoding = 'us-ascii';
+                                $hdr->encoding = '7bit';
                             } else {
                                 $msg->header->type0 = 'multipart';
                                 $msg->type0 = 'multipart';
index 65a56dd88c24372df4a6a82ea9aeaaf190686778..1718a8620e19a729fa25d1f6795a453e3556bcd2 100644 (file)
@@ -87,7 +87,7 @@ if ($ent_id) {
     /* raw message */
     $type0 = 'message';
     $type1 = 'rfc822';
-    $encoding = 'US-ASCII';
+    $encoding = '7bit';
     $header = $message->header;
 }
 
index 1e8646a7016e355bc76bd9e3b986921eb66dc45d..3b5ead8bca5fee0334c08a71ea1851ce77d675f3 100644 (file)
@@ -206,7 +206,7 @@ function SendMDN ( $mailbox, $passed_id, $message, $imapConnection) {
     if ($special_encoding) {
         $mime_header->encoding = $special_encoding;
     } else {
-        $mime_header->encoding = 'us-ascii';
+        $mime_header->encoding = '7bit';
     }
     if ($default_charset) {
         $mime_header->parameters['charset'] = $default_charset;
@@ -230,7 +230,7 @@ function SendMDN ( $mailbox, $passed_id, $message, $imapConnection) {
     $mime_header = new MessageHeader;
     $mime_header->type0 = 'message';
     $mime_header->type1 = 'disposition-notification';
-    $mime_header->encoding = 'us-ascii';
+    $mime_header->encoding = '7bit';
     $part2->mime_header = $mime_header;
 
     $composeMessage = new Message();