mail icon indicating copy to clipboard operation
mail copied to clipboard

Email thread not found

Open AlexanderZuehr opened this issue 2 years ago • 4 comments

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. image

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

AlexanderZuehr avatar Nov 02 '23 12:11 AlexanderZuehr

I confirm it's most likely a duplicate of https://github.com/nextcloud/mail/issues/8223

ChristophWurst avatar Nov 02 '23 13:11 ChristophWurst

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 <>

  1. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 406 OCA\Mail\IMAP\ImapMessageFetcher->loadBodyData()
  2. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 357 OCA\Mail\IMAP\ImapMessageFetcher->handleTextMessage()
  3. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 390 OCA\Mail\IMAP\ImapMessageFetcher->getPart()
  4. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 352 OCA\Mail\IMAP\ImapMessageFetcher->handleMultiPartMessage()
  5. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 208 OCA\Mail\IMAP\ImapMessageFetcher->getPart()
  6. /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 311 OCA\Mail\IMAP\ImapMessageFetcher->fetchMessage()
  7. <> OCA\Mail\IMAP\MessageMapper->OCA\Mail\IMAP{closure}("*** sensitive parameters replaced ***")
  8. /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 302 array_map()
  9. /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 87 OCA\Mail\IMAP\MessageMapper->findByIds()
  10. /var/www/html/apps/mail/lib/Service/MailManager.php line 192 OCA\Mail\IMAP\MessageMapper->find()
  11. /var/www/html/apps/mail/lib/Controller/MessagesController.php line 220 OCA\Mail\Service\MailManager->getImapMessage()
  12. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Mail\Controller\MessagesController->getBody()
  13. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController()
  14. /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
  15. /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
  16. /var/www/html/lib/base.php line 1068 OC\Route\Router->match()
  17. /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 <>

  1. /var/www/html/apps/mail/lib/Controller/MessagesController.php line 220 OCA\Mail\Service\MailManager->getImapMessage()
  2. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Mail\Controller\MessagesController->getBody()
  3. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController()
  4. /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
  5. /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
  6. /var/www/html/lib/base.php line 1068 OC\Route\Router->match()
  7. /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 <>

  1. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 406 OCA\Mail\IMAP\ImapMessageFetcher->loadBodyData()
  2. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 357 OCA\Mail\IMAP\ImapMessageFetcher->handleTextMessage()
  3. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 390 OCA\Mail\IMAP\ImapMessageFetcher->getPart()
  4. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 352 OCA\Mail\IMAP\ImapMessageFetcher->handleMultiPartMessage()
  5. /var/www/html/apps/mail/lib/IMAP/ImapMessageFetcher.php line 208 OCA\Mail\IMAP\ImapMessageFetcher->getPart()
  6. /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 311 OCA\Mail\IMAP\ImapMessageFetcher->fetchMessage()
  7. <> OCA\Mail\IMAP\MessageMapper->OCA\Mail\IMAP{closure}("*** sensitive parameters replaced ***")
  8. /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 302 array_map()
  9. /var/www/html/apps/mail/lib/IMAP/MessageMapper.php line 87 OCA\Mail\IMAP\MessageMapper->findByIds()
  10. /var/www/html/apps/mail/lib/Service/MailManager.php line 192 OCA\Mail\IMAP\MessageMapper->find()
  11. /var/www/html/apps/mail/lib/Controller/MessagesController.php line 220 OCA\Mail\Service\MailManager->getImapMessage()
  12. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Mail\Controller\MessagesController->getBody()
  13. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController()
  14. /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch()
  15. /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main()
  16. /var/www/html/lib/base.php line 1068 OC\Route\Router->match()
  17. /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 `

ghost avatar Nov 08 '23 07:11 ghost

Same issue. I have updated to v3.5.0-rc3. But still getting the issue.

HLFH avatar Dec 09 '23 05:12 HLFH

I'm also still seeing this even after updating to 3.5.0-rc3

meichthys avatar Dec 09 '23 13:12 meichthys