php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Several unseen messages have the same body

Open fruckt opened this issue 4 years ago • 2 comments

Describe the bug It looks like several unseen messages have the same body flom last message

Used config

IMAP_HOST=imap.gmail.com
'options' => [
        'delimiter' => '/',
        'fetch' => \Webklex\PHPIMAP\IMAP::FT_UID,
        'sequence' => \Webklex\PHPIMAP\IMAP::ST_UID,
        'fetch_body' => true,
        'fetch_flags' => false,
        'message_key' => 'list',
        'fetch_order' => 'asc',
        'dispositions' => ['attachment', 'inline'],
        'common_folders' => [
            "root" => "INBOX",
            "junk" => "INBOX/Junk",
            "draft" => "INBOX/Drafts",
            "sent" => "INBOX/Sent",
            "trash" => "INBOX/Trash",
        ],
        'open' => [
            // 'DISABLE_AUTHENTICATOR' => 'GSSAPI'
        ],
        'decoder' => [
            'message' => 'utf-8', // mimeheader
            'attachment' => 'utf-8' // mimeheader
        ]
    ],

Code to Reproduce The troubling code section which produces the reported bug.

            $imapClient = \ImapClient::account($account);
            $imapClient->connect();

            $mailBoxes = $imapClient->getFolders(false, 'INBOX');

            foreach ($mailBoxes as $mailBox) {
                foreach ($mailBox->messages()->unseen()->get() as $message) {
                    dump($message);
                }
            }

"webklex/laravel-imap": "2.4.0" "webklex/php-imap": "2.5.0" "laravel/framework": "5.3.30", php 7.1.33

Screenshots

fruckt avatar Mar 10 '21 17:03 fruckt

Hi @fruckt , thanks for your report.

I've edited your comment in order to remove your private information.

Best regards,

Webklex avatar Mar 10 '21 17:03 Webklex

Hi @fruckt , please update to the latest release and try again. There have been a ton of improvements and a vulnerability got fixed.

Once again, thanks for taking the time and effort to make this library better! If you have any more questions or need further assistance, feel free to let me know.

Best regards and happy coding!

Webklex avatar Jun 23 '23 22:06 Webklex