Permalink
Browse files

Merge pull request #9 from sherblot/master

Fix imap_reopen 'mailbox not found' error
  • Loading branch information...
2 parents 3f5cd12 + 8f96aef commit 127a0a29831a42ecb81b8989e8a3357a36a1bc6d @tedivm tedivm committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Fetch/Server.php
View
@@ -260,7 +260,7 @@ protected function setImapStream()
{
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);

0 comments on commit 127a0a2

Please sign in to comment.