src/IMAP/Folder.php
public function getMessage($uid, $msglist = null, $fetch_options = null, $fetch_body = false, $fetch_attachment = false, $fetch_flags = true) {
        $this->client->openFolder($this->path);
        if (imap_msgno($this->getClient()->getConnection(), $uid) > 0) {
            return new Message($uid, $msglist, $this->getClient(), $fetch_options, $fetch_body, $fetch_attachment, $fetch_flags);
        }

        return null;
    }
public function getMessage($uid, $msglist = null, $fetch_options = null, $fetch_body = false, $fetch_attachment = false, $fetch_flags = true) {
        $this->client->openFolder($this->path);
        if (imap_msgno($this->getClient()->getConnection(), $uid) > 0) {
            return new Message($uid, $msglist, $this->getClient(), $fetch_options, $fetch_body, $fetch_attachment, $fetch_flags);
        }

        return null;
    }
public function getMessage ( $ uid , $ msglist = null , $ fetch_options = null , $ fetch_body = false , $ fetch_attachment = false , $ fetch_flags = true ) { $ this -> client -> openFolder ( $ this -> path ) ; if ( imap_msgno ( $ this -> getClient ( ) -> getConnection ( ) , $ uid ) > 0 ) { return new Message ( $ uid , $ msglist , $ this -> getClient ( ) , $ fetch_options , $ fetch_body , $ fetch_attachment , $ fetch_flags ) ; } return null ; }
Get a specific message by UID

@param integer      $uid     Please note that the uid is not unique and can change
@param integer|null $msglist
@param integer|null $fetch_options
@param boolean      $fetch_body
@param boolean      $fetch_attachment
@param boolean      $fetch_flags

@return Message|null
@throws Exceptions\ConnectionFailedException
@throws Exceptions\InvalidMessageDateException
Get a specific message by UID