Skip to content

Commit

Permalink
Merge pull request #25 from FibreStream/master
Browse files Browse the repository at this point in the history
Do not resolve uid to msgno if using FT_UID
  • Loading branch information
Webklex authored Oct 4, 2017
2 parents c881244 + bb625e6 commit a7d997c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IMAP/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a7d997c

Please sign in to comment.