This method needs to use $isUid from the $client like the others methods in this class for fetching the right results.
I think the function should be like this:
$isUid = boolval($flags & FT_UID);
$messages = $client->fetch($imap->getMailboxName(), $sequence, $isUid, [
'BODY[HEADER.FIELDS (SUBJECT FROM TO CC REPLYTO MESSAGEID DATE SIZE REFERENCES)]',
'UID',
'FLAGS',
'INTERNALDATE',
'RFC822.SIZE',
'ENVELOPE',
'RFC822.HEADER'
]);
This method needs to use $isUid from the $client like the others methods in this class for fetching the right results. I think the function should be like this:
instead of just "false" in the third parameter.