Skip to content

Commit

Permalink
Merge pull request #9 from sherblot/master
Browse files Browse the repository at this point in the history
Fix imap_reopen 'mailbox not found' error
  • Loading branch information
tedivm committed Oct 4, 2012
2 parents 3f5cd12 + 8f96aef commit 127a0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fetch/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 127a0a2

Please sign in to comment.