...
|
...
|
@@ -63,21 +63,8 @@ class SyncToEsCmd { |
|
|
|
|
|
if($is_auto) return 1;
|
|
|
|
|
|
$filter = redis()->get('ai_email_filter_lists',[]);
|
|
|
$filter = is_array($filter) ? $filter : [];
|
|
|
foreach ($filter as $f){
|
|
|
list($t,$str) = $f;
|
|
|
$haystack = '';
|
|
|
if($t==2){
|
|
|
$haystack = $data['subject'];
|
|
|
}elseif ($t==1){
|
|
|
$haystack = $data['from'];
|
|
|
}
|
|
|
if($haystack && $str && stripos($haystack,$str)!==false){
|
|
|
return 1;
|
|
|
}
|
|
|
}
|
|
|
return 0;
|
|
|
return isAiAutoMail($data['from'],$data['subject']) === 1 ? 1 : 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|