作者 邓超

x

@@ -297,10 +297,8 @@ class SyncMail { @@ -297,10 +297,8 @@ class SyncMail {
297 297
298 // 是否搜索 298 // 是否搜索
299 if ($this->search instanceof ImapSearch){ 299 if ($this->search instanceof ImapSearch){
300 - $uids = $msg->search($this->search)->getUids();  
301 - }  
302 -  
303 - if($uids){ 300 + $this->saveMail($folder_id,$msg->search($this->search)->get()->all(),$isBody);
  301 + }else if($uids){
304 $this->saveMail($folder_id,$msg->uid($uids)->get()->all(),$isBody); 302 $this->saveMail($folder_id,$msg->uid($uids)->get()->all(),$isBody);
305 }else{ 303 }else{
306 $p=1; 304 $p=1;