Commit graph

370 commits

Author SHA1 Message Date
cketti
1690781e7a Merge WebDavTransport into WebDavStore 2022-10-10 16:45:16 +02:00
cketti
2c1ef99c7a Remove unused interface Transport 2022-10-10 16:45:16 +02:00
cketti
be4a078a4b Add logging to LocalKeyStore.isValidCertificate() 2022-10-10 15:38:47 +02:00
cketti
f386888fcd SMTP: Don't attempt to send QUIT command when connection is closed 2022-10-10 15:27:50 +02:00
cketti
bd03d070df Clear log buffer before reading EHLO response 2022-10-10 15:16:33 +02:00
cketti
2bd2f22b1f Rewrite SMTP connect code to properly handle all network errors
Previously e.g. a SocketTimeoutException would exit the loop to test all addresses early.
2022-10-07 17:45:42 +02:00
cketti
037afd0596 Add support for UTF-8 data in BODYSTRUCTURE response 2022-09-14 15:33:20 +02:00
cketti
dd3d103fd3 Add support for UTF-8 in quoted strings to ImapResponseParser 2022-09-14 15:33:20 +02:00
cketti
00259046c6 Add MimeParameterDecoder test for UTF-8 data in header value 2022-09-14 14:40:21 +02:00
PatrickMis
5cc022a9ee Bump httpClient and move it to global 'versions' array 2022-09-07 18:38:55 +02:00
PatrickMis
570208b3fb Bump dependencies 2022-09-07 18:38:55 +02:00
PatrickMis
dfec81c877 Make ktlint happy 2022-09-05 16:04:52 +02:00
cketti
d6ba51b899
Merge pull request #6266 from thundernest/convert_to_kotlin3
Convert `IdGrouper` to Kotlin
2022-09-02 19:26:39 +02:00
cketti
f4e75f0633
Merge pull request #6265 from thundernest/convert_to_kotlin2
Convert `FolderNameCodec` to Kotlin
2022-09-02 19:11:17 +02:00
cketti
5800627cb8 Convert IdGrouper to Kotlin 2022-08-31 20:46:08 +02:00
cketti
a54784fb4e Rename .java to .kt 2022-08-31 20:42:43 +02:00
cketti
5f4b24d5fe Convert FolderNameCodec to Kotlin 2022-08-31 20:11:29 +02:00
cketti
58ce09c43f Rename .java to .kt 2022-08-31 20:11:29 +02:00
cketti
2c22856781 Convert BoundaryGenerator to Kotlin 2022-08-31 19:53:32 +02:00
cketti
389f9f7175 Rename .java to .kt 2022-08-31 19:40:27 +02:00
cketti
ef91c6d3ff Convert MimeParameterDecoderTest to using Truth 2022-08-25 22:22:46 +02:00
cketti
7381cb808d Fix test in MimeParameterDecoderTest 2022-08-25 22:03:37 +02:00
cketti
ec76473a1c Remove RealImapConnection.handleConnectException() 2022-08-12 09:41:06 +02:00
cketti
89d3df091f Change ImapSettings.useCompression to a property 2022-08-12 09:34:01 +02:00
cketti
5bd3b1a7f7 Convert RealImapConnection to Kotlin 2022-08-10 19:55:03 +02:00
cketti
8334e692ad Rename .java to .kt 2022-08-10 18:33:47 +02:00
cketti
002b70fcf9 Convert RealImapStoreTest to Kotlin 2022-08-10 17:48:58 +02:00
cketti
48f13ca3dc Rename .java to .kt 2022-08-10 17:41:36 +02:00
cketti
a57f127a11 Convert RealImapStore to Kotlin 2022-08-10 16:21:52 +02:00
cketti
33fa9d2b7c Rename .java to .kt 2022-08-10 16:19:21 +02:00
cketti
b90fc50d1a Convert ImapSettings to Kotlin 2022-08-10 15:17:41 +02:00
cketti
01539af985 Rename .java to .kt 2022-08-10 15:17:41 +02:00
cketti
99f6e42b28 Convert SimpleImapSettings to Kotlin 2022-08-10 15:11:39 +02:00
cketti
a039b1ae51 Rename .java to .kt 2022-08-10 15:08:17 +02:00
cketti
dcb3321870 Fix bug in com.fsck.k9.logging.Timber 2022-08-09 17:21:48 +02:00
cketti
a5c5278c71 Add 'com.android.lint' Gradle plugin to JVM projects 2022-08-09 13:55:01 +02:00
cketti
8156a3832b Move EmailHelper from :app:core to :mail:common 2022-08-08 20:58:54 +02:00
cketti
d82b462565 IMAP: Fix creating header values from a BODYSTRUCTURE item 2022-08-02 19:55:31 +02:00
cketti
114af53c84 Convert HtmlConverterTest to Kotlin 2022-08-02 16:47:22 +02:00
Croydon
c8db3b350a Update GitHub URLs to new location 2022-07-25 20:07:23 +02:00
cketti
8c556a4af8 SMTP: Increase socket read timeout for the DATA command 2022-07-19 12:09:27 +02:00
cketti
238a5cd181 Handle authentication failure when refreshing the folder list 2022-07-05 12:40:43 +02:00
cketti
00e0d8b35a Change server settings to use OAuth after an authentication failure 2022-07-05 12:40:43 +02:00
cketti
bbd104f38a Add support for the OAUTHBEARER SASL method (SMTP) 2022-06-05 22:49:30 +02:00
cketti
d3be6e249b Add support for the OAUTHBEARER SASL method (IMAP) 2022-06-05 22:49:30 +02:00
cketti
5065afef88
Merge pull request #6082 from k9mail/oauth_setup_flow
Add support for OAuth 2.0 (Gmail)
2022-05-28 15:44:22 +02:00
cketti
7e5c6b05c4
Merge pull request #6051 from TheLastProject/feature/2943
Add support for List-Unsubscribe
2022-05-28 14:28:35 +02:00
Sylvia van Os
6081b58212 Add Unsubscribe toolbar option 2022-05-28 14:07:08 +02:00
cketti
14a7f1b0d3 Add support for OAuth 2.0 (Gmail) 2022-05-23 22:26:49 +02:00
cketti
60bf78d3f0 Ignore invalid SMTP EHLO response lines 2022-05-22 21:52:18 +02:00
cketti
553cbbb87f Only use XOAuth2ChallengeParser on continuation requests 2022-05-11 01:43:57 +02:00
cketti
35ced0f3ef Add Logger implementation for tests 2022-05-11 01:43:57 +02:00
cketti
bf6ae48658 Convert RealImapConnectionTest to Kotlin 2022-05-11 01:43:57 +02:00
cketti
f26d0410ba Rename .java to .kt 2022-05-11 00:41:02 +02:00
cketti
e7032255c6 JVM-ify mail libraries 2022-05-02 20:05:00 +02:00
cketti
171c0eca43 Use DefaultHostnameVerifier from Apache's httpclient5 2022-05-02 20:05:00 +02:00
cketti
fdb8655f3a Remove Robolectric from a lot of tests 2022-05-02 17:08:22 +02:00
cketti
ad337c0395 Move mime type utility functions to :k9mail:app:core 2022-05-02 14:41:55 +02:00
cketti
d69c1f4c46 Add simple logging abstraction
Once there's a JVM artifact for Timber, hopefully all we have to do is replace the imports again.
2022-05-02 02:44:35 +02:00
cketti
ff48609b6f Remove CertificateValidationException's dependency on the Android SDK 2022-05-02 02:44:34 +02:00
cketti
c61dc117d2 Replace usage of android.text.util.Rfc822Token[izer] in Address
At some point we need to clean up our email address parser mess. But for now we just copy Android's implementation of `Rfc822Token` and `Rfc822Tokenizer`.
2022-05-01 23:54:29 +02:00
cketti
2abe7d2b9f Replace usage of android.text.TextUtils in Address 2022-05-01 23:22:00 +02:00
cketti
1280f43cba Fix STARTTLS bug in SmtpTransport 2022-05-01 01:31:46 +02:00
cketti
0a05802843 Use our standard read/connect timeouts in SmtpTransport 2022-05-01 01:25:05 +02:00
cketti
906cc19b6e Replace usage of JSONObject with Moshi 2022-04-28 23:23:44 +02:00
cketti
6ea0bab0cf Remove SuppressLint annotations 2022-04-28 22:42:44 +02:00
cketti
4b1dc23ebb Remove unused code from OAuth2TokenProvider 2022-04-28 22:39:39 +02:00
cketti
7f343e4fd1 Move DefaultTrustedSocketFactory 2022-04-28 22:18:14 +02:00
cketti
4ad2e04cff Decouple WebDavSocketFactory from DefaultTrustedSocketFactory 2022-04-28 22:02:48 +02:00
cketti
e2609f3a46 Move MailTo and ListHeaders classes 2022-04-28 18:56:53 +02:00
Bastian Wilhelm
d71e5b40ac Replace AndroidX annotations with the ones from JetBrains 2022-04-28 14:52:48 +02:00
cketti
ef8d9abed3 Rewrite FlowedMessageUtils.deflow()
This new version should use a lot less allocations.
2022-04-22 16:28:47 +02:00
cketti
f7b6b8371f Rename .java to .kt 2022-04-22 16:28:44 +02:00
cketti
77227b3290
Merge pull request #6030 from k9mail/fix_format_flowed
Fix bug in `FlowedMessageUtils.deflow()`
2022-04-22 16:27:28 +02:00
cketti
2f78315cb4 Fix bug in FlowedMessageUtils.deflow()
Properly handle the case when a quoted flowed line is followed by an empty line.
2022-04-21 02:56:00 +02:00
cketti
60baf4bd5b Reformat FlowedMessageUtils.deflow 2022-04-21 00:50:44 +02:00
cketti
9b00bccb2c Add tests for FlowedMessageUtils 2022-04-21 00:50:42 +02:00
cketti
0934f274b7 Get rid of EnhancedNegativeSmtpReplyException 2022-04-20 18:01:36 +02:00
cketti
e9369e1b04 Convert NegativeSmtpReplyException to Kotlin 2022-04-20 18:01:36 +02:00
cketti
0aaa0a9a82 Rename .java to .kt 2022-04-20 18:01:36 +02:00
cketti
0c5a9a678a Convert StatusCodeClass to Kotlin 2022-04-20 18:01:36 +02:00
cketti
198f04359c Rename .java to .kt 2022-04-20 18:01:36 +02:00
cketti
56da545493 Convert SmtpTransport to Kotlin 2022-04-20 18:01:36 +02:00
cketti
2f258d6886 Rename .java to .kt 2022-04-20 17:08:40 +02:00
cketti
cf2979e9fb Convert SmtpTransportTest to Kotlin 2022-04-20 17:08:40 +02:00
cketti
c25884314f Rename .java to .kt 2022-04-20 17:08:40 +02:00
cketti
7be4ea62fe Remove ImapStore's dependency on ConnectivityManager 2022-04-12 21:58:15 +02:00
cketti
a796b1d941 Change IMAP code to use single compression setting 2022-04-12 21:58:15 +02:00
cketti
d13352a4cd Use new SmtpResponseParser in SmtpTransport 2022-04-11 17:24:55 +02:00
cketti
a7562fe3f3 Add a new parser for SMTP responses 2022-04-11 17:24:55 +02:00
cketti
a11c993491 Add support for duplicate "charset" parameters with matching values 2022-03-11 01:54:17 +01: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
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
251a221b3b Stop using AUTH without arguments (POP3)
At least one server software closes the connection right away after receiving the AUTH command without arguments. Since using the AUTH command without arguments never made it into a standard, I decided to completely remove this functionality.
2022-01-25 17:41:48 +01:00
parkerfath
722e6b923f
Change delimiter in address fields from ASCII 0 to 1 (#5863)
Fixes search by sender name.

Co-authored-by: Fath <fath@147dda1a2773.ant.amazon.com>
2022-01-14 19:40:28 +01:00
cketti
878400c15f Explicitly specify locale in case conversion or string formatting 2021-11-26 15:43:28 +01:00
Tobias Preuss
f0d3f371f0 Avoid leaking CountingOutputStream.
+ Affects com.fsck.k9.mail.filter.CountingOutputStream.
2021-11-23 09:45:05 +01:00