正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -130,6 +130,7 @@ class Body { | @@ -130,6 +130,7 @@ class Body { | ||
| 130 | public function ltrimText($body){ | 130 | public function ltrimText($body){ |
| 131 | $bodyMiaoSuText = [ | 131 | $bodyMiaoSuText = [ |
| 132 | "This is a multi-part message in MIME format.", | 132 | "This is a multi-part message in MIME format.", |
| 133 | + "This is a MIME-encapsulated message.", | ||
| 133 | "This is a multipart message in MIME format.", | 134 | "This is a multipart message in MIME format.", |
| 134 | "This is a MIME message. If you are reading this text, you may want to \r\nconsider changing to a mail reader or gateway that understands how to \r\nproperly handle MIME multipart messages.", | 135 | "This is a MIME message. If you are reading this text, you may want to \r\nconsider changing to a mail reader or gateway that understands how to \r\nproperly handle MIME multipart messages.", |
| 135 | // 'This is a MIME message.' | 136 | // 'This is a MIME message.' |
| @@ -144,6 +145,11 @@ class Body { | @@ -144,6 +145,11 @@ class Body { | ||
| 144 | } | 145 | } |
| 145 | } | 146 | } |
| 146 | 147 | ||
| 148 | + $body = explode("\r\n\r\n",$body); | ||
| 149 | + if(stripos($body[0],'This is a M')===0 && strpos($body[1],'--')===0){ | ||
| 150 | + unset($body[0]); | ||
| 151 | + } | ||
| 152 | + $body = implode("\r\n\r\n",$body); | ||
| 147 | 153 | ||
| 148 | return $body; | 154 | return $body; |
| 149 | 155 |
-
请 注册 或 登录 后发表评论