|
@@ -261,18 +261,18 @@ function sync(){ |
|
@@ -261,18 +261,18 @@ function sync(){ |
261
|
try {
|
261
|
try {
|
262
|
if(empty($folder['_child'])){
|
262
|
if(empty($folder['_child'])){
|
263
|
// 同步父文件夹
|
263
|
// 同步父文件夹
|
264
|
- $mailServer->syncMail($id,$folder['id'],$folder['origin_name']);
|
264
|
+ $mailServer->syncMail($id,$folder['id'],$folder['origin_folder']);
|
265
|
}else{
|
265
|
}else{
|
266
|
foreach ($folder as $item){
|
266
|
foreach ($folder as $item){
|
267
|
// 同步子文件夹
|
267
|
// 同步子文件夹
|
268
|
- $mailServer->syncMail($id,$item['id'],$folder['origin_name'].'/'.$item['origin_name']);
|
268
|
+ $mailServer->syncMail($id,$item['id'],$folder['origin_folder'].'/'.$item['origin_folder']);
|
269
|
}
|
269
|
}
|
270
|
}
|
270
|
}
|
271
|
|
271
|
|
272
|
}catch (Throwable $e){
|
272
|
}catch (Throwable $e){
|
273
|
logs(
|
273
|
logs(
|
274
|
$e->getMessage(),
|
274
|
$e->getMessage(),
|
275
|
- LOG_PATH.'/imap/'.$email.'.error.log'
|
275
|
+ LOG_PATH.'/imap/'.$email['email'].'.error.log'
|
276
|
);
|
276
|
);
|
277
|
}
|
277
|
}
|
278
|
}
|
278
|
}
|