javanile / php-imap2

PHP IMAP with OAUTH2
https://php-imap2.javanile.org/
GNU General Public License v3.0
48 stars 28 forks source link

Bug in Message::fetchOverview() #40

Open matteodante opened 1 year ago

matteodante commented 1 year ago

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'
    ]);

instead of just "false" in the third parameter.

IZSkiSurfer commented 1 year ago

As well as