Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Extra server information methods #4

Merged
merged 2 commits into from

2 participants

@Lumbendil

Added a method to get the current mailbox, Sever::getMailBox(), and made the method Server::getServerString() public.

@tedivm tedivm merged commit 7484ff1 into tedious:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 18, 2012
  1. @Lumbendil

    Added a method to get the current mailbox and modified the visibility…

    Lumbendil authored
    … of getServerString to be able to get more information about the server.
  2. @Lumbendil
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/Fetch/Server.php
View
9 src/Fetch/Server.php
@@ -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();
Something went wrong with that request. Please try again.