We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
fix Webklex#552 Get folders list in hierarchical order
dd82326
Im getting the same outcome
$messages = $folder->messages() ->all() ->setFetchOrderDesc() // This modifier is causing issue ->limit(1) ->get();
Without this modifier, its working altho it return oldest. This same snippet works in v5.5
Sorry, something went wrong.
When using the chunk function, some messages do not have an element w…
f8d5f34
…ith index 0 #552 #553 Co-authored-by: Dmitry Chizh <[email protected]>
d1e916b
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: