From bb625e671a45a72c3583473b64288295cf3d54d4 Mon Sep 17 00:00:00 2001 From: Ryan Gard Date: Tue, 3 Oct 2017 18:25:36 -0400 Subject: [PATCH] Do not resolve uid to msgno if using FT_UID --- src/IMAP/Message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IMAP/Message.php b/src/IMAP/Message.php index 999c2ed..e5aa19d 100644 --- a/src/IMAP/Message.php +++ b/src/IMAP/Message.php @@ -129,7 +129,7 @@ class Message { public function __construct($uid, $msglist, Client $client, $fetch_options = null) { $this->msglist = $msglist; $this->client = $client; - $this->uid = imap_msgno($this->client->getConnection(), $uid); + $this->uid = ($fetch_options == FT_UID) ? $uid : imap_msgno($this->client->getConnection(), $uid); $this->setFetchOption($fetch_options); $this->parseHeader();