mail
mail copied to clipboard
Mails shown in Inbox are outdated/missing
Hi all,
I've been using the Mail app since it's public release but sind the 1.3.0 update it is unusable for me.
Here's the environment:
-
Nextcloud 18.04 (amd64, official Docker image)
-
Mail 1.3.2
-
Two Mail Accounts:
- One local IMAP account ("Admin")
- One remote IMAP account ("Strato")
Here's the list of problems I'm encountering:
- The Strato account only shows the latest mail, one mail max. Sometimes it doesn't show any mail at all. This is the same for the account specific inbox and for the common inbox. And it seems that when I move a mail from the Inbox to another IMAP folder the mail seems to stay inside the Inbox in the Mail App. It won't recognize the move operation.
- The Admin account is very high traffic and this seems to be a problem too. It shows a lot of old mails that has been deleted from another mail program days ago. Trying to delete it once again from NC Mail app sometimes seem to lock the app up and I need to close the browser tab and reload it once again. The mails shown are never the mails that currently existing in the mail box. I can see mails from days ago that lived only some seconds and are deleted from it.
The main problem seems that the Mail App can't handle it when mails are deleted or moved from a another mail program. The old version (-1.3.0) had problems with that too but a simple reloading of the Mail tab solved this, now this is permanent. A manual sync of the mail accounts won't help (occ mail sync command).
The Mail App is totally unusable with my setup and needs some fixing to be working again. I can't see anything relevant in the log files. Please tell me how to help fix this problems.
I can't see anything relevant in the log files.
I highly doubt this.
The Nextcloud mail app offers an extensive logging system to make it easier identifying and tracking down bugs. Please enable debug mode and set the log level to debug in your admin settings. Then, try to reproduce your issue and take another look at data/nextcloud.log and data/horde_imap.log.
Please use the bug report template for future reports: https://github.com/nextcloud/mail/issues/new?assignees=&labels=bug%2C+0.+to+triage&template=bug.md&title=
Dear Christoph, I'm using NC Mail (18.04/1.3.4) on a NC turnkey system - I have no access to config files, just admin settings within NC. I noticed the same behavior as nRaecheR with a mail account of Strato.de. Mails of inbox are vanishing while a new one appears, although they are still stored on the server they are just not shown in the inbox. Similar behavior of 'sent mails' folder. I checked back with an accout of another provider (all-inkl.de) and everything is fine here. So I think it has something to do with the communication to the server of some providers and it is not a general problem. I hope this helps a bit to enclose the problem - would it help to send a download of the errorlog in NC's settings panel? BTW. Thanks for your work
Thank you Christoph for your answer. Maybe you should configure the issue reporting that the template is used when someone is opening a new issue?
Anyway, I've produced some log files but I find it difficult to provide it to you because they contain a lot of private/sensitive information, at least the horde_imap.log. Is there any way to sanitize the log file before I can send it to you? Are there any entries I can grep out and send to you?
Thank you Christoph for your answer. Maybe you should configure the issue reporting that the template is used when someone is opening a new issue?
It's not always necessary. And the more complex the template, the more people will ignore it just like it happened here.
No answers to my log files questions? Maybe the diagnose output helps, here it is for the "Strato" account:
IMAP capabilities:
- AUTH
- CHILDREN
- ENABLE
- I18NLEVEL
- ID
- IDLE
- IMAP4
- IMAP4REV1
- MOVE
- MULTIAPPEND
- NAMESPACE
- QUOTA
- SORT
- STATUS
- UIDPLUS
- UNSELECT
- WITHIN
- XLIST
Account has 42913 messages in 201 mailboxes
and here for the "Admin" account :
IMAP capabilities:
- AUTH
- ENABLE
- ID
- IDLE
- IMAP4REV1
- LITERAL+
- LOGIN-REFERRALS
- SASL-IR
- STARTTLS
Account has 7060 messages in 9 mailboxes
No answers to my log files questions?
I'll answer. Just try to be a bit more patient. This is free community support. If you have a support contract with Nextcloud GmbH please reach out through the support system so we can prioritize this issue.
No rush, thank you.
I have seen this issue as well, for now work-around that seem to work most of the time to update the folders is to click the Mark all as read option in the ... menu.
update the folders is to click the Mark all as read option in the ... menu
I don't see why that would help. It will just set a flag on a few messages. I still can not reproduce the issue.
It doesn't help on my setup. Another problem is that the content in "All inboxes" has nothing to do with the inboxes per account. The account one is empty for Admin account but the common one is showing a lot of (deleted) mails from it. Clicking on one of the mails shows only this text:
Not found
Could not load the desired message :'-|
I have the same issue. Clicking mark all as read does not work for me. Also i noticed that when you click on the menu next to inbox it counts the mails in my inbox correctly (9). However i see a lot more emails, also the removed mails are still there.
In the log inside nextcloud i don't see any mail related erros, or do i need to enable more debugging error logging somewhere else?
There is LOTS of debugging options. But right now I have no clue where to look, so those might not help at all.
All i can see is this this in the console log from the browser when i click on a not existing mail:
[DEBUG] mail: Inboxes sync'ed in background Object { app: "mail", uid: "jurgen" }mail.js:229:225524
[DEBUG] mail: navigated to another message Object { app: "mail", uid: "jurgen", to: {…}, from: {…} }mail.js:229:225524
[DEBUG] mail: using cached value for envelope 1-SU5CT1g=-277 Object { app: "mail", uid: "jurgen" }mail.js:229:225524
[DEBUG] mail: envelope and message fetched Object { app: "mail", uid: "jurgen", envelope: {…}, essage: undefined }mail.js:229:225524
[INFO] mail: message could not be found Object { app: "mail", uid: "jurgen", messageUid: "1-SU5CT1g=-277", envelope: {…}, message: undefined }
If you are like REALLY curious, then you have to enable debug mode and loggin on the server. Remove the account. Then add it again.
The Nextcloud mail app offers an extensive logging system to make it easier identifying and tracking down bugs. Please enable debug mode and set the log level to debug in your admin settings. Then, try to reproduce your issue and take another look at data/nextcloud.log, data/horde_imap.log and data/horde_smtp.log.
The problem still exists with Mail 1.35. Strato Inbox says "3 messages" but the view/reading pane at the right says "No messages in this folder". It seems that the logic behind that is borked. Mail recognizes the presence of the mails but won't display them. When a new mail arrives that single mail will be displayed until deleted. After that it takes hours (?) to recognize that the mail is no longer in the inbox. Then the mail box in empty once again, but it still says that there are 3 Messages in it (which is the truth). The admin accounts behaves somehow like the opposite, it says "0 messages" but is showing a lot of old messages that were deleted hours ago. When trying to delete a (already deleted) message the app seems to hang and needs to be reloaded by refreshing the browser tab.
Yeah, the sync mechanism has problems on your setups.
What you see in the sidebar is a direct query that goes to IMAP. If you see a mismatch there, it's totally meaningless in terms of the cache state of the app.
I have no idea how to remotely debug this. If someone sends me credentials to an IMAP account with this problem that I can set up and debug locally I might be able to gather more info.
What is your cron setting btw? What type of cron do you run? How often is it run? See the admin settings.
I could create you an temporary account for one of my Strato domains. if you send me an email address where I can send you the login/password to. Cron is System Cron, it works without problems every 15 minutes.
Cron is System Cron, it works without problems.
How often is it run?
if you send me an email address where I can send you the login/password to.
Send it to christoph at nextcloud com
Will do that ASAP. Every 15 minutes.
I've send you the login credentials as email.
Thanks a lot. I'll have a look when my time allows.
Every 15 minutes.
Side note: we now recommend running it every 5min :)
Ah okay, but I had problems in the past with a long running task (News app update) which took more than 5 minutes but I will try 5 minutes again.
I also experience missing displayed mails with a Strato mail account. Is there already a solution? Or are there still debug infos needed (if, which)?
You could give https://help.nextcloud.com/t/mail-v1-4-0-ready-for-testing/84227 a go or wait a few days until the official release. There is always the chance that we fixed some of the problems in the meantime.
Updating the Mail app to version 1.4.0 did not fix the problems :(
The update seems to have fixed our issues with not displayed mails though. But in contrast to @nRaecheR we didn't experience the display of in other clients deleted mails, so there might be a different or multiple problems with his setup?
Anyway, thanks for your great work at this App and NC @ChristophWurst !
I've used the new version 1.4.0 for a few days now. There are changes in the behavior for the local, admin account. The mails shown are not always up to date but I can remove them without problems when a mail is "not found". For the Strato account I can't see any changes. It won't show more than one e-mail and most of the time no mail at all is shown in the inbox. @ChristophWurst Did you have time to test the Strato problems with the mail account I've provided to you?