mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-11 12:39:26 +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
|
* 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
|
* 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
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function getServerString()
|
public function getServerString()
|
||||||
{
|
{
|
||||||
$mailboxPath = '{' . $this->serverPath;
|
$mailboxPath = '{' . $this->serverPath;
|
||||||
|
|
||||||
@ -337,7 +342,7 @@ class Server
|
|||||||
$numMessages = $limit;
|
$numMessages = $limit;
|
||||||
|
|
||||||
if($numMessages < 1)
|
if($numMessages < 1)
|
||||||
return false;
|
return array();
|
||||||
|
|
||||||
$stream = $this->getImapStream();
|
$stream = $this->getImapStream();
|
||||||
$messages = array();
|
$messages = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user