正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -59,6 +59,8 @@ class syncMail { | @@ -59,6 +59,8 @@ class syncMail { | ||
| 59 | } | 59 | } |
| 60 | }else{ | 60 | }else{ |
| 61 | if($f == 's'){ | 61 | if($f == 's'){ |
| 62 | + // 邮件过滤 | ||
| 63 | + if(!preg_match("/^((no-?reply)|(postmaster)|(mailer-daemon))@/i",$data['from'])){ | ||
| 62 | // 通知黑格 2024-08-22 新上 这个是异步的不会阻塞当前进程 | 64 | // 通知黑格 2024-08-22 新上 这个是异步的不会阻塞当前进程 |
| 63 | SaberGM::post('https://fob.ai.cc/api/email_new_push',[ | 65 | SaberGM::post('https://fob.ai.cc/api/email_new_push',[ |
| 64 | 'sign' => md5(date('ymd').'fob.ai.cc.email'), | 66 | 'sign' => md5(date('ymd').'fob.ai.cc.email'), |
| @@ -69,6 +71,10 @@ class syncMail { | @@ -69,6 +71,10 @@ class syncMail { | ||
| 69 | 'tos' => array_column(json_decode($data['to_name'],1),'email') | 71 | 'tos' => array_column(json_decode($data['to_name'],1),'email') |
| 70 | ]); | 72 | ]); |
| 71 | } | 73 | } |
| 74 | + | ||
| 75 | + | ||
| 76 | + | ||
| 77 | + } | ||
| 72 | } | 78 | } |
| 73 | 79 | ||
| 74 | } | 80 | } |
-
请 注册 或 登录 后发表评论