...
|
...
|
@@ -147,6 +147,19 @@ class SyncMail { |
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
protected $isSyncFolder = true;
|
|
|
|
|
|
/**
|
|
|
* 是否同步文件夹
|
|
|
* @return $this
|
|
|
* @author:dc
|
|
|
* @time 2025/9/13 15:34
|
|
|
*/
|
|
|
public function noSyncFolder(){
|
|
|
$this->isSyncFolder = false;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
|
|
|
protected function emailId(){
|
|
|
return $this->email['id'];
|
...
|
...
|
@@ -281,11 +294,14 @@ class SyncMail { |
|
|
/*********************************** 同步文件夹 ***************************************/
|
|
|
// 获取文件夹
|
|
|
$folders = $this->imap->getFolders();
|
|
|
|
|
|
if($this->isSyncFolder){
|
|
|
$uuids = $this->folder($folders->getTopFolder());
|
|
|
if($uuids){
|
|
|
// 删除以前的
|
|
|
$this->db->delete(folderSql::$table,['uuid.notin'=>$uuids,'email_id'=>$this->emailId()]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!$syncMail) return true;
|
|
|
|
...
|
...
|
|