Email thread not found
Steps to reproduce
Hey,
we do have a bug with the mail-chains feature in the nextcloud mail-app. Often all of the mails in a mail chain do have a not found error, sometimes 1 or 2 mails in the chain are working. It is a little bit similar to the known problem in #8223, but in this bug all the mails are still present on the mail server and other clients are able to show this mail-chain without problems.
Maybe this problem will be fixed by #8968? Or do we need a new solution to this problem?
I am going to attach a picture underneath.
Mail app version
stable 3.4.1
Mailserver or service
No response
Operating system
No response
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database
MariaDB
Additional info
No response
I confirm it's most likely a duplicate of https://github.com/nextcloud/mail/issues/8223
I've patched #8968 manually but our problem with the mail threads still exists. Is there anything more need from my side, like a cache reset or something?
The Logs:
`Caused by:
OCP\AppFramework\Db\DoesNotExistException: Mail body for this mail(80) could not be loaded at <
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 406 OCA\Mail\IMAP\ImapMessageFetcher->loadBodyData()
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 357 OCA\Mail\IMAP\ImapMessageFetcher->handleTextMessage()
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 390 OCA\Mail\IMAP\ImapMessageFetcher->getPart()
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 352 OCA\Mail\IMAP\ImapMessageFetcher->handleMultiPartMessage()
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 208 OCA\Mail\IMAP\ImapMessageFetcher->getPart()
- /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 311 OCA\Mail\IMAP\ImapMessageFetcher->fetchMessage()
- <
> OCA\Mail\IMAP\MessageMapper->OCA\Mail\IMAP{closure}("*** sensitive parameters replaced ***") - /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 302 array_map()
- /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 87 OCA\Mail\IMAP\MessageMapper->findByIds()
- /var/www/html/apps/mail/lib/Service/MailManager.php line 192 OCA\Mail\IMAP\MessageMapper->find()
- /var/www/html/apps/mail/lib/Controller/MessagesController.php line 220 OCA\Mail\Service\MailManager->getImapMessage()
- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Mail\Controller\MessagesController->getBody()
- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController()
- /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
- /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
- /var/www/html/lib/base.php line 1068 OC\Route\Router->match()
- /var/www/html/index.php line 36 OC::handleRequest()
GET /apps/mail/api/messages/1742383/body from x.x.x.x by xxx at 2023-11-08T07:38:18+00:00
[mail] Fehler: OCA\Mail\Exception\ServiceException: Could not load message at <
- /var/www/html/apps/mail/lib/Controller/MessagesController.php line 220 OCA\Mail\Service\MailManager->getImapMessage()
- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Mail\Controller\MessagesController->getBody()
- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController()
- /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
- /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
- /var/www/html/lib/base.php line 1068 OC\Route\Router->match()
- /var/www/html/index.php line 36 OC::handleRequest()
Caused by:
OCP\AppFramework\Db\DoesNotExistException: Mail body for this mail(5298) could not be loaded at <
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 406 OCA\Mail\IMAP\ImapMessageFetcher->loadBodyData()
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 357 OCA\Mail\IMAP\ImapMessageFetcher->handleTextMessage()
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 390 OCA\Mail\IMAP\ImapMessageFetcher->getPart()
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 352 OCA\Mail\IMAP\ImapMessageFetcher->handleMultiPartMessage()
- /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 208 OCA\Mail\IMAP\ImapMessageFetcher->getPart()
- /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 311 OCA\Mail\IMAP\ImapMessageFetcher->fetchMessage()
- <
> OCA\Mail\IMAP\MessageMapper->OCA\Mail\IMAP{closure}("*** sensitive parameters replaced ***") - /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 302 array_map()
- /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 87 OCA\Mail\IMAP\MessageMapper->findByIds()
- /var/www/html/apps/mail/lib/Service/MailManager.php line 192 OCA\Mail\IMAP\MessageMapper->find()
- /var/www/html/apps/mail/lib/Controller/MessagesController.php line 220 OCA\Mail\Service\MailManager->getImapMessage()
- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Mail\Controller\MessagesController->getBody()
- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController()
- /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
- /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
- /var/www/html/lib/base.php line 1068 OC\Route\Router->match()
- /var/www/html/index.php line 36 OC::handleRequest()
GET /apps/mail/api/messages/1634059/body from x.x.x.x by xxx at 2023-11-08T07:38:59+00:00 `
Same issue. I have updated to v3.5.0-rc3. But still getting the issue.
I'm also still seeing this even after updating to 3.5.0-rc3