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

Extra server information methods
This commit is contained in:
Robert Hafner 2012-10-04 10:14:22 -07:00
commit 7484ff1897

View File

@ -161,6 +161,11 @@ class Server
}
}
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 @@ class Server
*
* @return string
*/
protected function getServerString()
public function getServerString()
{
$mailboxPath = '{' . $this->serverPath;
@ -337,7 +342,7 @@ class Server
$numMessages = $limit;
if($numMessages < 1)
return false;
return array();
$stream = $this->getImapStream();
$messages = array();