|
@@ -195,7 +195,10 @@ function sync($email_id){ |
|
@@ -195,7 +195,10 @@ function sync($email_id){ |
195
|
$call = function ($email_id,$folder_id,$origin_folder) use ($mailServer){
|
195
|
$call = function ($email_id,$folder_id,$origin_folder) use ($mailServer){
|
196
|
// 同步父文件夹
|
196
|
// 同步父文件夹
|
197
|
$result = $mailServer->syncMail($email_id,$folder_id,$origin_folder);
|
197
|
$result = $mailServer->syncMail($email_id,$folder_id,$origin_folder);
|
198
|
- _echo('同步文件夹('.$origin_folder.')邮件列表 '.(is_array($result)?count($result):'未同步'));
|
198
|
+ if(is_array($result) && $result){
|
|
|
199
|
+ _echo($email_id.' 同步文件夹('.$origin_folder.')邮件列表 '.count($result));
|
|
|
200
|
+ }
|
|
|
201
|
+
|
199
|
};
|
202
|
};
|
200
|
|
203
|
|
201
|
// $folders = list_to_tree($folders);
|
204
|
// $folders = list_to_tree($folders);
|