Skip to content

Commit bb625e6

Browse files
author
Ryan Gard
committed
Do not resolve uid to msgno if using FT_UID
1 parent c881244 commit bb625e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IMAP/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Message {
129129
public function __construct($uid, $msglist, Client $client, $fetch_options = null) {
130130
$this->msglist = $msglist;
131131
$this->client = $client;
132-
$this->uid = imap_msgno($this->client->getConnection(), $uid);
132+
$this->uid = ($fetch_options == FT_UID) ? $uid : imap_msgno($this->client->getConnection(), $uid);
133133

134134
$this->setFetchOption($fetch_options);
135135
$this->parseHeader();

0 commit comments

Comments
 (0)