php-imap
php-imap copied to clipboard
Several unseen messages have the same body
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
Hi @fruckt , thanks for your report.
I've edited your comment in order to remove your private information.
Best regards,
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!