mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 10:39:21 +03:00
Merge pull request #4 from Wiakowe/server-information-methods
Extra server information methods
This commit is contained in:
commit
7484ff1897
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user