作者 邓超

x

@@ -192,8 +192,8 @@ class MailListV2 extends Base { @@ -192,8 +192,8 @@ class MailListV2 extends Base {
192 192
193 if($subject || $from_not_in_like){ 193 if($subject || $from_not_in_like){
194 $sql .= ' and ('; 194 $sql .= ' and (';
195 - if($subject) $sql.= implode(' and ',$subject);  
196 - if($from_not_in_like) $sql.= ' and '.implode(' and ',$from_not_in_like); 195 + if($subject) $sql.= implode(empty($is_auto_inbox)?' and ':' or ',$subject);
  196 + if($from_not_in_like) $sql.= ' and ('.implode(empty($is_auto_inbox)?' and ':' or ',$from_not_in_like).')';
197 $sql .= ')'; 197 $sql .= ')';
198 } 198 }
199 199
@@ -247,9 +247,9 @@ class MailListV2 extends Base { @@ -247,9 +247,9 @@ class MailListV2 extends Base {
247 $where = ['email_id'=>$emails]; 247 $where = ['email_id'=>$emails];
248 $where['deleted'] = 0; //未删状态 248 $where['deleted'] = 0; //未删状态
249 // 屏蔽哪些邮件 249 // 屏蔽哪些邮件
250 - $where['from.notin'] = $this->from_not_in();  
251 - $where['_'] = "`from` not like 'postmaster@%'";  
252 - if(!$where['from.notin']) unset($where['from.notin']); 250 +// $where['from.notin'] = $this->from_not_in();
  251 +// $where['_'] = "`from` not like 'postmaster@%'";
  252 +// if(!$where['from.notin']) unset($where['from.notin']);
253 253
254 // 发件箱 254 // 发件箱
255 if(in_array('hot_send',$show_count_filed)){ 255 if(in_array('hot_send',$show_count_filed)){
@@ -301,8 +301,8 @@ class MailListV2 extends Base { @@ -301,8 +301,8 @@ class MailListV2 extends Base {
301 301
302 if($subject || $from_not_in_like){ 302 if($subject || $from_not_in_like){
303 $sql .= ' ('; 303 $sql .= ' (';
304 - if($subject) $sql.= implode(' and ',$subject);  
305 - if($from_not_in_like) $sql.= ' and '.implode(' and ',$from_not_in_like); 304 + if($subject) $sql.= implode(empty($is_auto_inbox)?' and ':' or ',$subject);
  305 + if($from_not_in_like) $sql.= ' and ('.implode(empty($is_auto_inbox)?' and ':' or ',$from_not_in_like).')';
306 $sql .= ') and '; 306 $sql .= ') and ';
307 } 307 }
308 308