作者 邓超

xxx

@@ -129,6 +129,7 @@ class Body { @@ -129,6 +129,7 @@ class Body {
129 129
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 multi-part message in MIME format.",
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.",
@@ -137,7 +138,7 @@ class Body { @@ -137,7 +138,7 @@ class Body {
137 138
138 foreach ($bodyMiaoSuText as $str){ 139 foreach ($bodyMiaoSuText as $str){
139 // 这个是描述特殊文本 140 // 这个是描述特殊文本
140 - if(strpos($body,$str)===0){ 141 + if(stripos($body,$str)===0){
141 $body = ltrim($body,$str); 142 $body = ltrim($body,$str);
142 $body = trim($body); 143 $body = trim($body);
143 } 144 }