...
|
...
|
@@ -337,6 +337,9 @@ class SyncMail { |
|
|
}
|
|
|
|
|
|
$folder_id = $this->getFolderId($folder->getName());
|
|
|
if($folder->getName() == 'INBOX'){
|
|
|
$this->folder_inbox_id = $folder_id;
|
|
|
}
|
|
|
if(in_array($folder->getName(),['INBOX','[Gmail]/Important','[Gmail]/Starred','星标邮件','Important'])){
|
|
|
$isBody = true;
|
|
|
}
|
...
|
...
|
@@ -456,18 +459,15 @@ class SyncMail { |
|
|
'folder_id' => $data['folder_id'],
|
|
|
'uid' => $data['uid']
|
|
|
]),'`id`'));
|
|
|
if(!$id){
|
|
|
$id = $this->db->value(listsSql::firstHot(dbWhere([
|
|
|
'email_id'=> $data['email_id'],
|
|
|
'folder_id' => $data['folder_id'],
|
|
|
'uid' => $data['uid']
|
|
|
]),'`id`'));
|
|
|
}
|
|
|
|
|
|
|
|
|
if(!$id){
|
|
|
|
|
|
$id = $this->insert($data);
|
|
|
// 收件箱直接 未读 不远程为准
|
|
|
if(defined('CLI_AI_SYNC_START') && !empty($this->folder_inbox_id) && $this->folder_inbox_id == $data['folder_id']){
|
|
|
$data['seen'] = 0;
|
|
|
}
|
|
|
|
|
|
if(!$id){
|
|
|
continue;
|
|
|
}
|
...
|
...
|
|