作者 邓超

x

... ... @@ -42,6 +42,9 @@ class AutoMail {
$this->black_emails = $this->db->all("select * from `ai_black_email`");
$this->black_emails = array_column($this->black_emails,'email');
$this->black_emails = array_map("strtolower",$this->black_emails);
if(redis()->add('black_mail_sync2',1,60)){
echo '正在计算数据';
$maxId = $this->db->value("select `id` from `lists` order by `id` desc limit 1");
... ... @@ -84,7 +87,7 @@ class AutoMail {
// 必须是收件箱
if(in_array($item['folder_id'],$this->fids)){
// 是否在黑名单中
if(in_array($item['from'],$this->black_emails)){
if(in_array(strtolower($item['from']),$this->black_emails)){
if (!isset($this->filter[$item['email_id']])){
// 找到邮箱
$e = $this->db->value(listsSql::first(dbWhere(['id'=>$item['email_id']]),'email'));
... ...