-
-
Notifications
You must be signed in to change notification settings - Fork 119
feat: pre-messages / next version of download on demand #7371
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
6fe6723 to
8140ebc
Compare
2f1c383 to
6bcc795
Compare
8443b17 to
702771f
Compare
bb0fd7c to
a98fe05
Compare
This comment was marked as resolved.
This comment was marked as resolved.
4a119fc to
84ce946
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
18346a1 to
77ab447
Compare
It currently fails because pre-messages aren't deleted on IMAP.
Hyphen shouldn't be surrounded by spaces in general.
…th pre-message ones When inserting pre-message checks in the middle, if they evaluate to false, the remaining checks aren't performed. While this may be correct currently, it's hard to maintain. Better move the pre-message checks into a separate block.
…_pre_message() Now it goes before `scan_folders()`. Scanning folders isn't that important, it's even debounced to once per minute. Before, `download_msgs()` even preceded the whole `fetch_idle()`.
…s as seen on IMAP
It's the post-message metadata by its nature and it's even put into the Chat-Post-Message-Metadata header.
This shouldn't cause message reordering issues because the UIs don't allow to set too small DownloadLimit, but this will help download small, e.g. chat messages first and only then big emails. Even if we decide to revert this suggestion, the test is still useful.
It never worked as expected: if messages showed up on IMAP later, they weren't deleted. Messages must be trashed with the `deleted` flag set, not just deleted from the db.
I.e. if DeleteServerAfter is set or BccSelf is unset (single-device mode) for chatmail. Looks like this never worked as expected.
This comment was marked as outdated.
This comment was marked as outdated.
link2xt
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.
I will merge this as one commit after tagging 2.37.0. Any additional changes can be separate PRs on top.
|
There's no good commit message however. I think in such cases we need to copy the description from the issue, it's good enough here ("Motivation" and "Implementation" sections look enough). Otherwise w/o access to github it will be hard to understand many things. I'd consider amending the commit and force-pushing |
DC_STR_DOWNLOAD_AVAILABILITY#7369This is the branch for #7367
closes #7367
Currently removed tests
Progress of the tests
Overview about the recycled(♻️) and dropped(🗑️) tests of the tests that I removed in #7373
All the recycled tests were already recycled/re-made except for some which are still to do:
(none)
Furthermore there need to be new tests to test the downloading/scheduling changes.
TODO Tests
postponed to do tests
(none)
discarded/ignored test ideas
maybe we should reconsider / discuss those?
Known bugs: