作者 邓超

x

... ... @@ -254,6 +254,7 @@ function sync_body($id,$worker_id){
if(!$mailServer->login()){
return 2;
}
$mailServer->client->debug(true,LOG_PATH.'/'.$id.'body/');
// 同步 body
$mailServer->syncBody($id['folder'],$id['uid'],$id['lists_id'],db());
... ... @@ -291,6 +292,7 @@ function sync($email_id,$worker_id){
return 2;
}
$mailServer->client->debug(true,LOG_PATH.'/'.$email_id.'/');
// 同步文件夹
$mailServer->syncFolder($email_id,db());
... ...
... ... @@ -319,6 +319,7 @@ function folderAliasMap():array {
'垃圾邮件' => '垃圾箱',
'已删除' => '回收站',
'已删除邮件' => '回收站',
'已发送' => '发件箱',
'垃圾桶' => '回收站',
... ...
... ... @@ -959,7 +959,7 @@ class Imap {
*/
public function debug($debug=true,$logPath=''){
$this->debug = $debug;
$this->debugWritePath = $logPath ? $logPath : storage_path('logs');
$this->debugWritePath = $logPath ? $logPath : LOG_PATH;
}
/**
... ...