作者 邓超

x

... ... @@ -147,34 +147,38 @@ class syncMail {
private function auto_mail($id,$data){
$filter = [
['2','Automatic reply'],
['2','Delivery'],
['2','Automatische Antwort:'],
['2','Automatic_reply'],
['2','Undeliverable'],
['2','Failure'],
['2','Undelivered'],
['1','noreply'],
['1','postmaster'],
['1','email-notifications'],
['1','mailer-daemon'],
['1','no-reply'],
['2','自动回复'],
['2','Returned mail'],
['2','Autosvar'],
['2','Out Of Office Re'],
['2','Change_of_email_address'],
['2','delivered'],
['2','ReÌponse automatique'],
['2','Reply auto'],
['2','automatic'],
['2','Request received'],
['2','Automatisch'],
];
$filter = '2 Automatic reply
2 Delivery
2 Automatische Antwort
2 Undeliverable
2 Failure
2 Undelivered
1 noreply
1 postmaster
1 email-notifications
1 mailer-daemon
1 no-reply
2 自动回复
2 Returned mail
2 Autosvar
2 Out Of Office Re
2 Change_of_email_address
2 delivered
2 automatique
2 Reply auto
2 automatic
2 Request received
2 Automatisch
2 Unzustellbar
2 expired';
$filter = explode("\r\n",$filter);
foreach ($filter as $f){
list($t,$str) = $f;
if(!$f) continue;
list($t,$str) = [
intval(mb_substr($f,0,1)),
trim(mb_substr($f,1,99)),
];
$haystack = '';
if($t==2){
$haystack = $data['subject'];
... ...