正在显示
1 个修改的文件
包含
8 行增加
和
5 行删除
@@ -295,16 +295,19 @@ class SyncMail { | @@ -295,16 +295,19 @@ class SyncMail { | ||
295 | if($folder->isOk()){ | 295 | if($folder->isOk()){ |
296 | $msg = $folder->msg(); | 296 | $msg = $folder->msg(); |
297 | 297 | ||
298 | - // 是否搜索 | ||
299 | - if ($this->search instanceof ImapSearch){ | ||
300 | - $this->saveMail($folder_id,$msg->search($this->search)->get()->all(),$isBody); | ||
301 | - }else if($uids){ | 298 | + if($uids){ |
302 | $this->saveMail($folder_id,$msg->uid($uids)->get()->all(),$isBody); | 299 | $this->saveMail($folder_id,$msg->uid($uids)->get()->all(),$isBody); |
303 | }else{ | 300 | }else{ |
304 | $p=1; | 301 | $p=1; |
305 | while (1){ | 302 | while (1){ |
306 | if($this->isStop) return $sync_number; | 303 | if($this->isStop) return $sync_number; |
307 | - $uids = $msg->forPage($p)->getOriginUids(); | 304 | + // 是否搜索 |
305 | + if ($this->search instanceof ImapSearch){ | ||
306 | + $uids = $msg->search($this->search)->getUids(); | ||
307 | + }else{ | ||
308 | + $uids = $msg->forPage($p)->getOriginUids(); | ||
309 | + } | ||
310 | + | ||
308 | if($uids){ | 311 | if($uids){ |
309 | $p++; | 312 | $p++; |
310 | 313 |
-
请 注册 或 登录 后发表评论