作者 邓超

x

@@ -4,6 +4,7 @@ namespace Service; @@ -4,6 +4,7 @@ namespace Service;
4 4
5 use Event\Event; 5 use Event\Event;
6 use Lib\Imap\Fun; 6 use Lib\Imap\Fun;
  7 +use Lib\Imap\Imap;
7 use Lib\Imap\ImapConfig; 8 use Lib\Imap\ImapConfig;
8 use Lib\Imap\ImapPool; 9 use Lib\Imap\ImapPool;
9 use Lib\Imap\Parse\Folder\Folder; 10 use Lib\Imap\Parse\Folder\Folder;
@@ -60,7 +61,7 @@ class SyncMail { @@ -60,7 +61,7 @@ class SyncMail {
60 if($imap instanceof \Lib\Imap\Imap){ 61 if($imap instanceof \Lib\Imap\Imap){
61 $this->imap = $imap; 62 $this->imap = $imap;
62 }else{ 63 }else{
63 - $this->imap = ImapPool::get( 64 + $this->imap = new Imap(
64 (new ImapConfig()) 65 (new ImapConfig())
65 ->setHost($email['imap']) 66 ->setHost($email['imap'])
66 ->setEmail($email['email']) 67 ->setEmail($email['email'])