...
|
...
|
@@ -261,18 +261,18 @@ function sync(){ |
|
|
try {
|
|
|
if(empty($folder['_child'])){
|
|
|
// 同步父文件夹
|
|
|
$mailServer->syncMail($id,$folder['id'],$folder['origin_name']);
|
|
|
$mailServer->syncMail($id,$folder['id'],$folder['origin_folder']);
|
|
|
}else{
|
|
|
foreach ($folder as $item){
|
|
|
// 同步子文件夹
|
|
|
$mailServer->syncMail($id,$item['id'],$folder['origin_name'].'/'.$item['origin_name']);
|
|
|
$mailServer->syncMail($id,$item['id'],$folder['origin_folder'].'/'.$item['origin_folder']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}catch (Throwable $e){
|
|
|
logs(
|
|
|
$e->getMessage(),
|
|
|
LOG_PATH.'/imap/'.$email.'.error.log'
|
|
|
LOG_PATH.'/imap/'.$email['email'].'.error.log'
|
|
|
);
|
|
|
}
|
|
|
}
|
...
|
...
|
|