Tobias Preuss
4beee75b32
Use "isNotEmpty" convenience function.
2020-07-08 14:04:37 +02:00
Tobias Preuss
35b1d17244
Use property access syntax.
2020-07-08 14:00:23 +02:00
Tobias Preuss
9c6d08142a
Infer type.
2020-07-08 13:58:23 +02:00
cketti
c71c6bc230
Automatically update folder list
...
Refresh list of folders before syncing an individual folder if the last time the folder list was refreshed was more than 30 minutes ago.
2020-06-26 23:56:07 +02:00
cketti
ccf9004090
Remove unused Contacts from MessagingController
2020-06-26 21:43:16 +02:00
cketti
7acab6cb33
Use injected Preferences instance in MessagingController
2020-06-26 21:42:53 +02:00
cketti
b87521ade4
Inject Preferences into MessagingController
2020-06-26 21:42:51 +02:00
cketti
ace8bc1244
Merge pull request #4847 from runningcode/no/api
...
Use api instead of implementation.
2020-06-24 03:22:35 +02:00
Nelson Osacky
907106bfdc
Use api instead of implementation.
...
This improves the build times when making incremental changes.
See [this slide](https://speakerdeck.com/runningcode/beyond-modularization-scaling-your-android-build-with-gradle?slide=97 )
for the performance improvements.
2020-06-23 11:27:39 +02:00
cketti
925bb66ea5
Remove failed pending commands
2020-06-19 19:43:33 +02:00
cketti
74942150e5
Merge pull request #4839 from k9mail/local_only_operations
...
Don't attempt to perform remote operations on local-only folders
2020-06-19 16:57:47 +02:00
Mehdi Sadeghi
dfbcbad458
Let WebView handle bidirectional text
2020-06-19 16:25:21 +02:00
cketti
5c5f2409be
Don't upload draft message if not supported
2020-06-17 22:48:20 +02:00
cketti
be5b16040e
Don't upload sent message if Sent folder is local-only
2020-06-17 15:46:57 +02:00
cketti
f7ee43bc3d
Don't upload messages deleted from Outbox if not supported
...
When deleting a message from the local Outbox don't attempt to upload it to the (remote) Trash folder if the backend doesn't support that (POP3).
2020-06-17 15:39:51 +02:00
cketti
fc807303c9
Don't queue pending command for setting flags if not supported
...
If the backend doesn't support setting flags (POP3) or the folder is a local-only folder (Outbox), don't add a pending command that is guaranteed to fail.
2020-06-17 15:09:58 +02:00
cketti
14bf32cea4
Rename Backend.supportsSeenFlag to supportsFlags
2020-06-17 14:45:41 +02:00
cketti
39db941dab
Don't update special folders for POP3 accounts
2020-06-13 17:04:25 +02:00
cketti
1a96ef4641
Remove Folder.serverId property
2020-06-13 02:02:56 +02:00
cketti
01ae362ae5
Add FolderRepository.getRemoteFolderDetails()
2020-06-13 02:02:56 +02:00
cketti
e5d6bf1cc6
Change UnreadWidgetDataProvider to not get FolderDetails
2020-06-13 02:02:56 +02:00
cketti
b175a6aa8b
Introduce RemoteFolder class
2020-06-13 02:02:56 +02:00
cketti
77a0be271e
Remove use of LocalFolder.serverId where not appropriate
2020-06-13 02:02:56 +02:00
cketti
99029a07b9
Fix reading of LocalFolder.databaseId
2020-06-13 02:02:56 +02:00
cketti
c31b753d26
Write 'server_id' value of NULL to database for local folders
2020-06-13 02:02:54 +02:00
cketti
fc3e2a18e5
Use folder ID in LocalStore.getPersonalNamespaces()
2020-06-12 18:53:11 +02:00
cketti
00fc6708cc
Change MessagingController.deleteMessagesSynchronous() to use folder ID
2020-06-12 18:53:11 +02:00
cketti
31ad75c539
Rewrite LocalStore.getFoldersAndUids() to getFolderIdsAndUids()
2020-06-12 18:53:11 +02:00
cketti
4976d4e178
Change MessagingListener.folderStatusChanged() to use folder ID
2020-06-12 18:53:11 +02:00
cketti
f229b8ca3e
Disable use of the signature when creating the default identity
2020-06-04 22:26:04 +02:00
cketti
81b99bd307
Merge pull request #4810 from k9mail/wording
...
Fix names of some identifiers
2020-06-03 20:19:09 +02:00
cketti
dd895ce204
Replace DozeChecker.isAppWhitelisted() with isIgnoringBatteryOptimizations()
2020-06-02 17:13:48 +02:00
cketti
02b5feacad
Replace 'Whitelist' with 'AllowList' in HtmlHelper
2020-06-02 17:09:47 +02:00
cketti
8b043840c7
Convert 'HtmlHelper' to Kotlin
2020-06-02 17:09:47 +02:00
cketti
0b202197f0
Rename 'HtmlHelper' prior to conversion to Kotlin
2020-06-02 17:09:47 +02:00
cketti
781a6f29b9
Replace 'Whitelist' with 'AllowList' in HtmlSanitizer
2020-06-02 17:09:47 +02:00
cketti
245ae8c123
Convert 'HtmlSanitizer' to Kotlin
2020-06-02 17:01:43 +02:00
cketti
00846b21b6
Rename 'HtmlSanitizer' prior to conversion to Kotlin
2020-06-02 16:51:55 +02:00
cketti
f1a08e54f6
Add logging to K9NotificationStrategy
2020-06-02 13:21:32 +02:00
cketti
25bdbe8a0d
Use proper "server ID" when creating local Outbox folder
2020-05-29 19:32:36 +02:00
cketti
c85b56828e
Don't reset special local folders in SpecialFolderUpdater
2020-05-16 17:46:26 +02:00
cketti
981e12965a
Add isLocalOnly property to Folder
2020-05-15 19:55:26 +02:00
cketti
482e8df663
Create SpecialLocalFoldersCreator to create special local folders
...
That's "Outbox" for all account types. And additionally "Drafts", "Sent",
and "Trash" folders for POP3 accounts.
2020-05-15 17:21:47 +02:00
cketti
9100438b31
Make trying to open a non-existent folder a permanent error
2020-05-13 16:31:35 +02:00
cketti
e830656d80
Remove LocalFolder.close()
...
It's not doing anything useful and was responsible for at least one bug.
2020-05-08 19:42:16 +02:00
cketti
b67ed99f24
Remove usage of java.time API
2020-05-08 14:32:51 +02:00
cketti
03d057a785
Retry failed periodic syncs with exponential backoff
2020-05-06 17:35:32 +02:00
cketti
76f1d37bc1
Use last sync time to calculate initial delay for periodic syncs
2020-05-06 17:35:25 +02:00
cketti
a224291532
Save last sync time
2020-05-06 16:57:38 +02:00
cketti
1e21f94e1c
Only reschedule sync job for the account whose settings were changed
2020-05-06 15:37:02 +02:00