正在显示
1 个修改的文件
包含
45 行增加
和
0 行删除
@@ -56,6 +56,8 @@ class syncMail { | @@ -56,6 +56,8 @@ class syncMail { | ||
56 | // 不是预热邮箱 | 56 | // 不是预热邮箱 |
57 | if($f=='收件箱'){ | 57 | if($f=='收件箱'){ |
58 | 58 | ||
59 | + $this->auto_mail($id,$data); | ||
60 | + | ||
59 | // 邮件过滤 这些邮箱都是系统邮箱 | 61 | // 邮件过滤 这些邮箱都是系统邮箱 |
60 | if(!$this->checkEmail($data['from']) && !$this->checkSubject($data['subject'])){ | 62 | if(!$this->checkEmail($data['from']) && !$this->checkSubject($data['subject'])){ |
61 | // 通知黑格 2024-08-22 新上 这个是异步的不会阻塞当前进程 | 63 | // 通知黑格 2024-08-22 新上 这个是异步的不会阻塞当前进程 |
@@ -144,4 +146,47 @@ class syncMail { | @@ -144,4 +146,47 @@ class syncMail { | ||
144 | } | 146 | } |
145 | 147 | ||
146 | 148 | ||
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 | + ]; | ||
170 | + | ||
171 | + foreach ($filter as $f){ | ||
172 | + list($t,$str) = $f; | ||
173 | + $haystack = ''; | ||
174 | + if($t==2){ | ||
175 | + $haystack = $data['subject']; | ||
176 | + }elseif ($t==1){ | ||
177 | + $haystack = $data['from']; | ||
178 | + } | ||
179 | + if(stripos($haystack,$str)!==false){ | ||
180 | + if(!$this->db->count("select count(*) from `lists_auto` where `list_id` = ".$id)){ | ||
181 | + echo "插入数据 ".$id.'==>'.$this->db->create('lists_auto',['list_id'=>$id],false).'==>'.$haystack."\n"; | ||
182 | + } | ||
183 | + break; | ||
184 | + } | ||
185 | + } | ||
186 | + | ||
187 | + | ||
188 | + | ||
189 | + } | ||
190 | + | ||
191 | + | ||
147 | } | 192 | } |
-
请 注册 或 登录 后发表评论