作者 邓超

x

@@ -25,21 +25,10 @@ while($id){ @@ -25,21 +25,10 @@ while($id){
25 $folder = db()->first(\Model\folderSql::first($list['folder_id'])); 25 $folder = db()->first(\Model\folderSql::first($list['folder_id']));
26 if(!$folder){continue;} 26 if(!$folder){continue;}
27 27
28 - $config = (new \Lib\Imap\ImapConfig())  
29 - // ->debug()  
30 - ->setEmail($email['email'])  
31 - ->setPassword(base64_decode($email['password']))  
32 - ->setHost($email['imap']);  
33 -  
34 - $imap = \Lib\Imap\ImapPool::get($config);  
35 - //$imap->debug();  
36 - $login = $imap->login();  
37 - if($login->isOk()){  
38 - (new \Service\SyncMail($email,$imap))->mail($folder['origin_folder'],[$list['uid']]);  
39 - } 28 + (new \Service\SyncMail($list['email_id']))->mail($folder['origin_folder'],[$list['uid']]);
40 29
41 } 30 }
42 31
43 redis()->set('empty_subject_check',$id); 32 redis()->set('empty_subject_check',$id);
44 33
45 -exit; 34 +