Merge pull request #9 from sherblot/master

Fix imap_reopen 'mailbox not found' error
This commit is contained in:
Robert Hafner 2012-10-04 10:12:53 -07:00
commit 127a0a2983

View File

@ -260,7 +260,7 @@ class Server
{
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());
}else{
$imapStream = imap_open($this->getServerString(), $this->username, $this->password, $this->options, 1);