...
|
...
|
@@ -295,16 +295,19 @@ class SyncMail { |
|
|
if($folder->isOk()){
|
|
|
$msg = $folder->msg();
|
|
|
|
|
|
// 是否搜索
|
|
|
if ($this->search instanceof ImapSearch){
|
|
|
$this->saveMail($folder_id,$msg->search($this->search)->get()->all(),$isBody);
|
|
|
}else if($uids){
|
|
|
if($uids){
|
|
|
$this->saveMail($folder_id,$msg->uid($uids)->get()->all(),$isBody);
|
|
|
}else{
|
|
|
$p=1;
|
|
|
while (1){
|
|
|
if($this->isStop) return $sync_number;
|
|
|
$uids = $msg->forPage($p)->getOriginUids();
|
|
|
// 是否搜索
|
|
|
if ($this->search instanceof ImapSearch){
|
|
|
$uids = $msg->search($this->search)->getUids();
|
|
|
}else{
|
|
|
$uids = $msg->forPage($p)->getOriginUids();
|
|
|
}
|
|
|
|
|
|
if($uids){
|
|
|
$p++;
|
|
|
|
...
|
...
|
|