...
|
...
|
@@ -43,12 +43,13 @@ class Mail { |
|
|
|
|
|
/**
|
|
|
* 同步文件夹
|
|
|
* @param int $email_id
|
|
|
* @param DbPool|null $db
|
|
|
* @return mixed
|
|
|
* @author:dc
|
|
|
* @time 2023/2/5 10:58
|
|
|
*/
|
|
|
public function syncFolder($db=null){
|
|
|
public function syncFolder($email_id,$db=null){
|
|
|
$db = $db ? $db : db();
|
|
|
// 读取所有文件夹,未解密
|
|
|
$folders = $this->client->getFolder();
|
...
|
...
|
@@ -64,7 +65,7 @@ class Mail { |
|
|
$pid = $db->insert(
|
|
|
folderSql::$table,
|
|
|
[
|
|
|
'email_id' => $this->client->getId(),
|
|
|
'email_id' => $email_id,
|
|
|
'folder' => $folder['name'][$k],
|
|
|
'origin_folder' => $item,
|
|
|
'pid' => $pid
|
...
|
...
|
|