作者 邓超

x

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