Mail sender display error - Question Mark
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Steps to reproduce
- Configure the mail app
- Open the inbox
Expected behavior
The email sender should be displayed correctly.
Actual behavior
The message sender is not displayed correctly. Instead a question mark is displayed.
Mail app version
2.2.7
Mailserver or service
OVH Mail
Operating system
Debian Bookworm
PHP engine version
None
Web server
Nginx
Database
None
Additional info
I have two users configured with the same mailbox. Only one of them has this display error.
Here is the error I found in the log file:
[mail] Erreur: OCA\Mail\Exception\ServiceException: Could not load message at <<closure>>
0. /var/www/<redacted.domain.tld>/apps/mail/lib/Controller/MessagesController.php line 205
OCA\Mail\Service\MailManager->getImapMessage()
1. /var/www/<redacted.domain.tld>/lib/private/AppFramework/Http/Dispatcher.php line 225
OCA\Mail\Controller\MessagesController->getBody()
2. /var/www/<redacted.domain.tld>/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController()
3. /var/www/<redacted.domain.tld>/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch()
4. /var/www/<redacted.domain.tld>/lib/private/Route/Router.php line 298
OC\AppFramework\App::main()
5. /var/www/<redacted.domain.tld>/lib/base.php line 1053
OC\Route\Router->match()
6. /var/www/<redacted.domain.tld>/index.php line 36
OC::handleRequest()
GET /apps/mail/api/messages/386/body
from <IP> by e at 2023-09-06T08:09:35+00:00
Caused by OCP\AppFramework\Db\DoesNotExistException: Message does not exist
/var/www/<redacted.domain.tld>/apps/mail/lib/Service/MailManager.php - line 180:
OCA\Mail\IMAP\MessageMapper->find()
/var/www/<redacted.domain.tld>/apps/mail/lib/Controller/MessagesController.php - line 205:
OCA\Mail\Service\MailManager->getImapMessage()
/var/www/<redacted.domain.tld>/lib/private/AppFramework/Http/Dispatcher.php - line 225:
OCA\Mail\Controller\MessagesController->getBody()
/var/www/<redacted.domain.tld>/lib/private/AppFramework/Http/Dispatcher.php - line 133:
OC\AppFramework\Http\Dispatcher->executeController()
/var/www/<redacted.domain.tld>/lib/private/AppFramework/App.php - line 172:
OC\AppFramework\Http\Dispatcher->dispatch()
/var/www/<redacted.domain.tld>/lib/private/Route/Router.php - line 298:
OC\AppFramework\App::main()
/var/www/<redacted.domain.tld>/lib/base.php - line 1053:
OC\Route\Router->match()
/var/www/<redacted.domain.tld>/index.php - line 36:
OC::handleRequest()
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the GET /apps/mail/api/messages/386/body request and inspect lib/Service/MailManager.php around line 180 and lib/Controller/MessagesController.php around line 205. Reproduce the sender display problem with the affected mailbox and compare both configured users. Done means identifying why the message cannot be loaded and confirming the sender renders correctly without the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100