Commit graph

134 commits

Author SHA1 Message Date
cketti
584cdb8c64 Remove now unused Backend.expungeMessages() 2024-05-06 19:28:47 +02:00
cketti
b5bdec65fd Add ImapFolder.deleteMessages() 2024-05-06 18:45:36 +02:00
cketti
2039e7fda7 Add ImapFolder.deleteAllMessages() 2024-05-06 18:16:20 +02:00
cketti
a7709af51e Remove ImapFolder.mode checks after a folder was opened 2024-04-30 13:28:48 +02:00
cketti
a8af48926d Don't call open() from RealImapFolder.search() 2024-04-25 22:29:39 +02:00
cketti
00cff358f3 Rename ImapFolder.setFlags() to setFlagsForAllMessages() 2024-04-25 22:14:58 +02:00
cketti
57ed8da230 Don't call open() from RealImapFolder.expunge() 2024-04-25 22:03:11 +02:00
cketti
e716383120 Don't check for existence of a folder before performing an operation 2024-04-24 14:47:25 +02:00
cketti
423f7553a7 Remove now unnecessary code to check if exact alarms can be scheduled 2024-03-27 12:54:44 +01:00
cketti
046d892fe4 Remove unused plumbing to check server settings 2024-02-10 23:56:13 +01:00
Wolf-Martell Montwé
8ef49ee956
Rename containsAll to containsAtLeast 2024-01-03 15:02:16 +01:00
cketti
2160a759e4 Don't start ImapBackendPusher when the app doesn't have permission to schedule exact alarms 2023-12-01 15:23:14 +01:00
cketti
397a06131e Add "Show only subscribed folders" setting to folders section 2023-08-16 12:04:05 +02:00
Wolf Montwé
71079908aa
Bump Gradle 8.0.2 -> 8.1.1 and remove suppress dsl scope violation 2023-04-25 17:21:58 +02:00
Wolf Montwé
06bbeded6f
Change :backend:imap module to assertk 2023-03-21 14:05:50 +01:00
Wolf Montwé
00b7bf45d7
Change truth testing library to legacy and only allow usage in old modules 2023-03-14 12:20:55 +01:00
Wolf Montwé
22d8e4b924
Change build files from Groovy to Kotlin 2023-02-23 14:52:16 +01:00
Wolf Montwé
96e2784b22
Rename build.gradle files to build.gradle.kts 2023-02-23 14:52:15 +01:00
Wolf Montwé
29d5220995
Add trailing comma allowance to code style 2023-02-17 16:14:13 +01:00
Wolf Montwé
45da12646b
Change to jvm build plugin 2023-02-15 17:40:57 +01:00
Wolf Montwe
1854a2c911
Change Kotlin code format 2023-02-03 17:23:57 +01:00
cketti
5220c66d61 Remove Backend.isDeleteMoveToTrash()
This property is confusing and basically unused right now.
2023-01-26 12:08:26 +01:00
cketti
1052bd07c7 Rename some Gradle version catalog entries 2023-01-16 14:49:14 +01:00
Bastian Wilhelm
a3f6995a2e Migrate to Gradle's version catalog 2023-01-16 14:49:14 +01:00
klemens
6d528918a1 spelling fixes 2023-01-04 21:00:41 +01:00
Goooler
d4055ea252 Configure java extensions in allprojects 2022-12-07 19:04:23 +01:00
cketti
8b21092cc2 Convert :backend:* to JVM modules 2022-09-17 14:53:04 +02:00
cketti
a807373e99 Make sure overridden methods use same parameter names as super class 2022-08-09 17:28:43 +02:00
cketti
556188efcc Properly report progress when receiving multiple FETCH responses per message 2022-03-05 02:04:14 +01:00
cketti
9dd076686b Remove unnecessary/unused method parameters 2022-03-05 01:20:23 +01:00
cketti
1d5a291ac7 Don't reuse FetchProfile instance 2022-03-05 00:11:16 +01:00
cketti
f6454121f0 IMAP: Log number of downloaded messages (instead of unread) 2022-03-04 23:51:23 +01:00
cketti
4bed7a595b Remove unused method parameters 2022-02-24 19:56:50 +01:00
cketti
e59f57f602 Remove unused callbacks from MessageRetrievalListener 2022-02-24 19:42:01 +01:00
cketti
a4e1a77892 Switch to mockito-inline 2022-02-03 01:10:52 +01:00
cketti
b6f549215d Use BackendFolder.setFolderExtraNumber() to remember highest known UID 2022-01-05 20:21:58 +01:00
cketti
4ab0dff096 Rewrite ImapSyncTest to use less Mockito 2022-01-05 20:21:58 +01:00
cketti
61046ef0fd Update Mockito (Kotlin) to version 4.0.0 2021-10-30 05:32:51 +02:00
cketti
e9c45b4aa8 Disable Push if not supported by the server 2021-08-02 18:49:06 +02:00
cketti
95ecac8893 Close all Push connections when Android connects to another network
When the default network changes Android usually kills connections established over the old network after a little while. K-9 Mail treats this as a regular network error and sleeps for 5 minutes before trying to re-establish the Push connection(s). Closing old connections and opening new ones when a network change is detected avoids this error.
2021-07-04 21:27:38 +02:00
cketti
ebbe02c057 Add ImapPushConfigProvider 2021-06-23 15:34:31 +02:00
cketti
aa9f6eaefa Add IdleRefreshTimeoutProvider 2021-06-23 14:02:07 +02:00
cketti
8fea80f14c Add PushController implementation 2021-06-22 15:30:23 +02:00
cketti
a74c206a0c Add implementation for BackendIdleRefreshManager 2021-06-16 15:04:01 +02:00
cketti
c8808ae447 Add ImapBackendPusher that manages multiple ImapFolderPusher instances 2021-06-13 00:51:23 +02:00
cketti
d62aa030c9 Add BackendPusher interface 2021-06-13 00:36:34 +02:00
cketti
ca13a32fec Add ImapFolderPusher to listen for changes to an IMAP folder 2021-06-12 21:09:30 +02:00
cketti
94f630cf88 Introduce ImapStore interface 2021-06-10 21:00:58 +02:00
cketti
ededa33ff2 Use enum class for ImapFolder.open() argument 2021-06-09 16:15:12 +02:00
cketti
769d658e5a Correctly persist message download state
Add the flag X_DOWNLOADED_FULL when the message has been downloaded completely, the flag X_DOWNLOADED_PARTIAL when only the text of a message has been downloaded, and set no additional flag when only the envelope and structure of the message has been downloaded. The latter happens when we fetch remote search results.
2021-05-10 00:47:27 +02:00