Skip to content

Commit

Permalink
Fix imap_reopen 'mailbox not found' error
Browse files Browse the repository at this point in the history
When this method was called and tried to reopen the imap connection, an
error was thrown because the second argument must be the complete
mailbox path and not only mailbox name
(http://lu.php.net/manual/fr/function.imap-reopen.php).
  • Loading branch information
sherblot committed Oct 4, 2012
1 parent 3f5cd12 commit 8f96aef
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 8f96aef

Please sign in to comment.