-
-
Notifications
You must be signed in to change notification settings - Fork 114
fix: add device message instead of partial message when receive_imf fails #7401
New issue
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
Conversation
5660333 to
e85b131
Compare
iequidoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good if such messages could be received later after fixing the problem, i think this will usually happen when an outdated version is used. Are there any ideas about this? Maybe we can at least remember the first failed message UID in the imap_sync table so that we can retry later?
src/imap.rs
Outdated
| warn!(context, "receive_imf error: {err:#}."); | ||
|
|
||
| let text = format!( | ||
| "There was an error receiving some message. Please report this bug to developers. The error message is: {err:#}." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "There was an error receiving some message. Please report this bug to developers. The error message is: {err:#}." | |
| "There was an error receiving some message. Please report this bug to delta@merlinux.eu or https://support.delta.chat/. The error message is: {err:#}." |
|
may these errors been triggered when as that is a quite common case (even if premessage will mitigate things a lot, it can happen on slow network, eg. not sure if core can respect the timeout given in all cases) - so wondering if we retry messages failing in background once in the normal forgroud loop - only if that fails as well, we write a device message if that makes sense, we should create a separate issue, however. this PR is fine as is to move forward. goal is that the user does not see the message at all on normal usage (i have seen the old partial download here and then since it was introduces not so long ago) |
No, this can only happen if |
69d82c5 to
ac76ad2
Compare
ac76ad2 to
c725e66
Compare
|
The problem is that the user will never see failed messages even after updating Delta Chat if it was a compatibility issue. The stuck IMAP loop may be even better in this sense. Are we going to do smth with this? Compatibility testing is complicated and there always will be users not updating on time. EDIT: Maybe the device message should be suggesting updating Delta Chat and restoring a recent backup if the user has any. |
Closes #7321