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
Hello,
After upgrading from PHP 7.4 to PHP 8.0, the library stopped working for me and I'm not able to retrieve message numbers using getNumber() any longer.
getNumber()
Here's my code:
$server = new Server(EMAIL_SERVER, EMAIL_PORT, EMAIL_FLAG); $connection = $server->authenticate(EMAIL_USERNAME, EMAIL_PASSWORD); $mailbox = $connection->getMailbox(EMAIL_MAILBOX); $search = new SearchExpression(); $messages = $mailbox->getMessages($search, \SORTDATE, true); foreach ($messages as $message) { $messageNumber = $message->getNumber(); }
Here comes the stack trace:
Ddeboer\Imap\Exception\MessageDoesNotExistException: Message "12345" does not exist imap_alerts (0): imap_errors (0): in C:\XXX\ddeboer\vendor\ddeboer\imap\src\Message.php:119 Stack trace: #0 C:\XXX\ddeboer\vendor\ddeboer\imap\src\Message\AbstractPart.php(163): Ddeboer\Imap\Message->assertMessageExists() #1 C:\XXX\test.php(42): Ddeboer\Imap\Message\AbstractPart->getNumber() #2 {main}
Can you please upgrade the library so it gets compatible with PHP 8?
Thank you so much in advance.
Best,
Ben
The text was updated successfully, but these errors were encountered:
Released in 1.11.0
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hello,
After upgrading from PHP 7.4 to PHP 8.0, the library stopped working for me and I'm not able to retrieve message numbers using
getNumber()
any longer.Here's my code:
Here comes the stack trace:
Can you please upgrade the library so it gets compatible with PHP 8?
Thank you so much in advance.
Best,
Ben
The text was updated successfully, but these errors were encountered: