Skip to content

Commit 2f47f27

Browse files
committed
Resolving getMessage is not returning the body of the message #75
1 parent 7cc3fc9 commit 2f47f27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/IMAP/Folder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,14 @@ public function setChildren($children = []) {
150150
*
151151
* @param integer $uid Please note that the uid is not unique and can change
152152
* @param integer|null $msglist
153+
* @param integer|null $fetch_options
154+
* @param boolean $parse_body
153155
*
154156
* @return Message|null
155157
*/
156-
public function getMessage($uid, $msglist = null) {
158+
public function getMessage($uid, $msglist = null, $fetch_options = null, $parse_body = false) {
157159
if (imap_msgno($this->getClient()->getConnection(), $uid) > 0) {
158-
return new Message($uid, $msglist, $this->getClient());
160+
return new Message($uid, $msglist, $this->getClient(), $fetch_options, $parse_body);
159161
}
160162

161163
return null;

0 commit comments

Comments
 (0)