作者 邓超

x

@@ -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);
@@ -205,10 +205,6 @@ class Mail { @@ -205,10 +205,6 @@ class Mail {
205 false 205 false
206 ); 206 );
207 207
208 - if(!$status['EXISTS']){  
209 - return true;  
210 - }  
211 -  
212 // 读取黑名单 208 // 读取黑名单
213 $blacklist = redis()->get('blacklist:'.$email_id); 209 $blacklist = redis()->get('blacklist:'.$email_id);
214 $blackFolder = ''; 210 $blackFolder = '';