We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When using the chunk function, some messages do not have an element with index 0
Used config IMAP_HOST=imap.mail.ru IMAP_PORT=993
Code to Reproduce
My usage:
$mailQuery->chunked(function (MessageCollection $messages) { /** @var Message $message */ foreach ($messages as $message) { $mailMessage = MessageSaver::save($message); $this->builder->save($mailMessage); } }, $this->chunkSize);
Vendor src:
// vendor/webklex/php-imap/src/Connection/Protocols/ImapProtocol.php:774 public function fetch(array|string $items, array|int $from, mixed $to = null, int|string $uid = IMAP::ST_UID): Response { if (is_array($from) && count($from) > 1) { $set = implode(',', $from); } elseif (is_array($from) && count($from) === 1) { $set = $from[0] . ':' . $from[0]; // <-- exception } elseif ($to === null) { $set = $from . ':' . $from; } elseif ($to == INF) { $set = $from . ':*'; } else { $set = $from . ':' . (int)$to; } // ... }
On dumping $from variable i get this value:
$from = [ 40 => "39083" ];
Screenshots
Desktop / Server (please complete the following information):
The text was updated successfully, but these errors were encountered:
Fix issue Webklex#552
2638f83
No branches or pull requests
Describe the bug
When using the chunk function, some messages do not have an element with index 0
Used config
IMAP_HOST=imap.mail.ru
IMAP_PORT=993
Code to Reproduce
My usage:
Vendor src:
On dumping $from variable i get this value:
Screenshots

Desktop / Server (please complete the following information):
The text was updated successfully, but these errors were encountered: