mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 19:26:01 +03:00
Merge pull request #9 from sherblot/master
Fix imap_reopen 'mailbox not found' error
This commit is contained in:
commit
127a0a2983
@ -260,7 +260,7 @@ class Server
|
|||||||
{
|
{
|
||||||
if(isset($this->imapStream))
|
if(isset($this->imapStream))
|
||||||
{
|
{
|
||||||
if(!imap_reopen($this->imapStream, $this->mailbox, $this->options, 1))
|
if(!imap_reopen($this->imapStream, $this->getServerString(), $this->options, 1))
|
||||||
throw new \RuntimeException(imap_last_error());
|
throw new \RuntimeException(imap_last_error());
|
||||||
}else{
|
}else{
|
||||||
$imapStream = imap_open($this->getServerString(), $this->username, $this->password, $this->options, 1);
|
$imapStream = imap_open($this->getServerString(), $this->username, $this->password, $this->options, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user