正在显示
1 个修改的文件
包含
30 行增加
和
26 行删除
| @@ -147,34 +147,38 @@ class syncMail { | @@ -147,34 +147,38 @@ class syncMail { | ||
| 147 | 147 | ||
| 148 | 148 | ||
| 149 | private function auto_mail($id,$data){ | 149 | private function auto_mail($id,$data){ |
| 150 | - $filter = [ | ||
| 151 | - ['2','Automatic reply'], | ||
| 152 | - ['2','Delivery'], | ||
| 153 | - ['2','Automatische Antwort:'], | ||
| 154 | - ['2','Automatic_reply'], | ||
| 155 | - ['2','Undeliverable'], | ||
| 156 | - ['2','Failure'], | ||
| 157 | - ['2','Undelivered'], | ||
| 158 | - ['1','noreply'], | ||
| 159 | - ['1','postmaster'], | ||
| 160 | - ['1','email-notifications'], | ||
| 161 | - ['1','mailer-daemon'], | ||
| 162 | - ['1','no-reply'], | ||
| 163 | - ['2','自动回复'], | ||
| 164 | - ['2','Returned mail'], | ||
| 165 | - ['2','Autosvar'], | ||
| 166 | - ['2','Out Of Office Re'], | ||
| 167 | - ['2','Change_of_email_address'], | ||
| 168 | - ['2','delivered'], | ||
| 169 | - ['2','ReÌponse automatique'], | ||
| 170 | - ['2','Reply auto'], | ||
| 171 | - ['2','automatic'], | ||
| 172 | - ['2','Request received'], | ||
| 173 | - ['2','Automatisch'], | ||
| 174 | - ]; | 150 | + $filter = '2 Automatic reply |
| 151 | +2 Delivery | ||
| 152 | +2 Automatische Antwort | ||
| 153 | +2 Undeliverable | ||
| 154 | +2 Failure | ||
| 155 | +2 Undelivered | ||
| 156 | +1 noreply | ||
| 157 | +1 postmaster | ||
| 158 | +1 email-notifications | ||
| 159 | +1 mailer-daemon | ||
| 160 | +1 no-reply | ||
| 161 | +2 自动回复 | ||
| 162 | +2 Returned mail | ||
| 163 | +2 Autosvar | ||
| 164 | +2 Out Of Office Re | ||
| 165 | +2 Change_of_email_address | ||
| 166 | +2 delivered | ||
| 167 | +2 automatique | ||
| 168 | +2 Reply auto | ||
| 169 | +2 automatic | ||
| 170 | +2 Request received | ||
| 171 | +2 Automatisch | ||
| 172 | +2 Unzustellbar | ||
| 173 | +2 expired'; | ||
| 174 | + $filter = explode("\r\n",$filter); | ||
| 175 | 175 | ||
| 176 | foreach ($filter as $f){ | 176 | foreach ($filter as $f){ |
| 177 | - list($t,$str) = $f; | 177 | + if(!$f) continue; |
| 178 | + list($t,$str) = [ | ||
| 179 | + intval(mb_substr($f,0,1)), | ||
| 180 | + trim(mb_substr($f,1,99)), | ||
| 181 | + ]; | ||
| 178 | $haystack = ''; | 182 | $haystack = ''; |
| 179 | if($t==2){ | 183 | if($t==2){ |
| 180 | $haystack = $data['subject']; | 184 | $haystack = $data['subject']; |
-
请 注册 或 登录 后发表评论