Permalink
Browse files

Merge pull request #4 from Wiakowe/server-information-methods

Extra server information methods
  • Loading branch information...
2 parents 127a0a2 + 70f414c commit 7484ff1897bf75a50a27bd07d7a0924263c49eaa @tedivm tedivm committed Oct 4, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/Fetch/Server.php
View
@@ -161,6 +161,11 @@ public function setMailBox($mailbox = '')
}
}
+ public function getMailBox()
+ {
+ return $this->mailbox;
+ }
+
/**
* This function sets or removes flag specifying connection behavior. In many cases the flag is just a one word
* deal, so the value attribute is not required. However, if the value parameter is passed false it will clear that
@@ -229,7 +234,7 @@ public function getImapStream()
*
* @return string
*/
- protected function getServerString()
+ public function getServerString()
{
$mailboxPath = '{' . $this->serverPath;
@@ -337,7 +342,7 @@ public function getMessages($limit = null)
$numMessages = $limit;
if($numMessages < 1)
- return false;
+ return array();
$stream = $this->getImapStream();
$messages = array();

0 comments on commit 7484ff1

Please sign in to comment.