正在显示
1 个修改的文件
包含
2 行增加
和
13 行删除
@@ -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 | + |
-
请 注册 或 登录 后发表评论