作者 邓超

x

... ... @@ -25,21 +25,10 @@ while($id){
$folder = db()->first(\Model\folderSql::first($list['folder_id']));
if(!$folder){continue;}
$config = (new \Lib\Imap\ImapConfig())
// ->debug()
->setEmail($email['email'])
->setPassword(base64_decode($email['password']))
->setHost($email['imap']);
$imap = \Lib\Imap\ImapPool::get($config);
//$imap->debug();
$login = $imap->login();
if($login->isOk()){
(new \Service\SyncMail($email,$imap))->mail($folder['origin_folder'],[$list['uid']]);
}
(new \Service\SyncMail($list['email_id']))->mail($folder['origin_folder'],[$list['uid']]);
}
redis()->set('empty_subject_check',$id);
exit;
... ...