Commit graph

449 commits

Author SHA1 Message Date
cketti
289eadd575 Rename .java to .kt 2023-06-23 14:11:30 +02:00
cketti
04d0c762a9 Add Pop3ServerSettingsValidator 2023-06-23 13:36:25 +02:00
cketti
f404dabf08
Merge pull request #7017 from thundernest/refactor_pop3_exception_handling
Change exception handling in POP3 code
2023-06-23 13:35:30 +02:00
cketti
f2d096c6e3 Change exception handling in POP3 code
Defer wrapping an IOException in a MessagingException for as long as possible.
2023-06-22 14:36:11 +02:00
cketti
0bdb03d50c Add SmtpServerSettingsValidator 2023-06-22 13:22:11 +02:00
cketti
d99067a9a7 Add ServerSettingsValidator interface 2023-06-21 19:41:35 +02:00
cketti
a574c39be0 Create better AuthenticationFailedException instances
Provide a value for `messageFromServer` whenever possible. We're showing this to the user when checking server settings has failed, so they get a better idea of what went wrong.
2023-06-21 18:31:52 +02:00
cketti
774d95d4f5
Merge pull request #7008 from thundernest/consistent_reply_behavior
Fetch `List-Post` header when downloading partial message
2023-06-20 16:42:14 +02:00
cketti
ff31f79dc2 Fetch List-Post header when downloading partial message 2023-06-20 15:04:43 +02:00
cketti
07985f7066 Use IOUtils.skipFully() in FixedLengthInputStream
There was a bug in the `skip()` implementation of `PeekableInputStream` which have could lead to an endless loop in `skipRemaining()`. Using `IOUtils.skipFully()` should avoid such a problem in the future.
2023-06-17 17:21:48 +02:00
cketti
7b7ffe4b88 Fix PeekableInputStream to adhere to the InputStream contract 2023-06-17 17:21:48 +02:00
cketti
fde82fe7b4 Convert PeekableInputStream to Kotlin 2023-06-17 17:21:45 +02:00
cketti
ff9bec87e1 Rename .java to .kt 2023-06-17 13:13:34 +02:00
cketti
cde85b97a2 Add tests for PeekableInputStream 2023-06-17 13:13:34 +02:00
cketti
3bf19ca3f6 Add UserInputEmailAddressParser
Used to parse name and email address pairs entered by the user when composing a message.
2023-06-07 18:40:49 +02:00
cketti
2dbecb667c Move HostNameUtils to :core:common 2023-05-22 18:03:56 +02:00
cketti
ef498c60e4 Update assertk to version 0.26 2023-05-16 17:20:25 +02:00
cketti
8376909043
Merge pull request #6897 from thundernest/rewrite_to_assertk
Switch assertions to assertk
2023-05-16 16:27:13 +02:00
cketti
5498567bf2 Switch assertions to assertk 2023-05-14 13:00:28 +02:00
cketti
a266e0a6fc Convert FixedLengthInputStream to Kotlin 2023-05-13 23:10:16 +02:00
cketti
64050584b5 Rename .java to .kt 2023-05-13 23:10:16 +02:00
cketti
9c4a0d40be Convert FixedLengthInputStreamTest to Kotlin 2023-05-13 22:55:54 +02:00
cketti
1e629952bc Rename .java to .kt 2023-05-13 22:52:15 +02:00
cketti
ec7c282ffd
Merge pull request #6883 from thundernest/hostname_validation
Add `HostNameUtils` to check the validity of host names and IP addresses
2023-05-10 18:45:30 +02:00
cketti
182e2c217c Fix escaping commas in buildOAuthBearerInitialClientResponse() 2023-05-08 15:46:04 +02:00
cketti
21be092394 Add HostNameUtils to check the validity of host names and IP addresses 2023-05-08 12:58:51 +02:00
cketti
626a9c318c
Merge pull request #6877 from thundernest/secure_random
Switch from `Random` to `SecureRandom`
2023-05-05 17:55:37 +02:00
cketti
79078344c2 Switch from using Random to SecureRandom 2023-05-05 16:35:30 +02:00
cketti
ff188cdfb5 Remove WebDAV code 2023-05-04 22:14:00 +02:00
cketti
07d2a42a4d Add tests for sending the IMAP ID command 2023-04-26 14:58:44 +02:00
Self Not Found
f2ce1fe344 IMAP: Add support for sending ID command with app name 2023-04-26 14:58:44 +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
cketti
4695bd0460 Don't parse Content-Transfer-Encoding as header containing named parameters 2023-04-20 18:57:57 +02:00
cketti
0d24dcd28a
Merge pull request #6836 from thundernest/fix_ImapResponseParser
Fix bugs in `ImapResponseParser`
2023-04-20 16:04:59 +02:00
cketti
98b59f1709 Fix bugs in ImapResponseParser 2023-04-19 19:36:31 +02:00
cketti
989c04f6cb Fix SmtpLogger call to not include input in format string 2023-04-18 19:26:47 +02:00
cketti
87ff2338ba
Merge pull request #6805 from thundernest/convert_to_kotlin
Convert `ImapResponseParserTest` to Kotlin
2023-04-11 14:58:00 +02:00
cketti
7ba404dd21 Clean up ImapResponseParserTest 2023-04-11 14:37:23 +02:00
cketti
fe2c5494ae Fix bug in CharsetSupport.readToString()
`charset` arguments containing a newline character didn't match the regular expression meant to always match.
2023-04-08 12:25:58 +02:00
cketti
5d030c0ccd Convert ImapResponseParserTest to Kotlin 2023-04-05 21:00:55 +02:00
cketti
aeedd17e1c Rename .java to .kt 2023-04-05 21:00:55 +02:00
Wolf Montwé
a670406eac
Change common module to assertk 2023-03-21 14:03:32 +01:00
Wolf Montwé
cbf1a8fa78
Change imap module to assertk 2023-03-21 14:00:23 +01:00
Wolf Montwé
b4b6b841a0
Convert ImapCommandSplitterTest to Kotlin 2023-03-21 13:57:58 +01:00
Wolf Montwé
6059ca9c54
Rename ImapCommandSplitterTest.java to ImapCommandSplitterTest.kt 2023-03-21 13:57:58 +01:00
Wolf Montwé
00bfb04388
Change pop3 module to assertk 2023-03-21 13:57:57 +01:00
Wolf Montwé
3c9ca12776
Change smtp module to assertk 2023-03-21 13:57:51 +01:00
cketti
76b52d17ac IMAP: Ignore errors during LOGIN fallback and throw original exception 2023-03-17 14:37:53 +01:00
cketti
7e5022ef36 IMAP: Put server response text in AuthenticationFailedException 2023-03-15 19:04: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
2618664c4f Fetch BCC header when only partially downloading a message 2023-02-01 22:37:39 +01:00
cketti
e826ed8db7
Merge pull request #6618 from thundernest/message-view-redesign
Add the redesigned message view screen
2023-02-01 18:51:05 +01:00
cketti
3e90f8b85e Remove unused methods 2023-01-27 19:50:46 +01:00
cketti
2df7c3301d Remove unused classes 2023-01-27 19:20:29 +01:00
cketti
6762b2c488 IMAP: Add Sender to list of headers to fetch by default 2023-01-24 18:21:51 +01:00
cketti
ddd464cffb Update Apache James Mime4J to version 0.8.8 2023-01-17 14:55:25 +01:00
cketti
a8432dd6d8 SMTP: Log "sensitive" responses when "Log sensitive information" is enabled 2023-01-17 14:12:25 +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
Goooler
4b0567744d Cleanup 2022-12-07 19:21:12 +01:00
Goooler
d4055ea252 Configure java extensions in allprojects 2022-12-07 19:04:23 +01:00
cketti
77756e56da Add support for search in recipient addresses 2022-11-28 18:16:45 +01:00
cketti
1570c2389f SMTP: Don't treat all TLS errors as certificate error 2022-11-01 11:47:05 +01:00
cketti
05d0038a67 Don't wrap exceptions when trying to connect to IMAP/SMTP servers 2022-11-01 11:47:05 +01:00
cketti
4908bcad47 Try all IP addresses when connecting to a POP3 server 2022-10-31 11:41:49 +01:00
cketti
15b7d8ee06 Move test from Pop3StoreTest to Pop3FolderTest 2022-10-29 01:10:28 +02:00
cketti
1e13d9c324 Convert Pop3FolderTest to Kotlin 2022-10-29 01:04:30 +02:00
cketti
7ffb3495c0 Rename .java to .kt 2022-10-29 01:04:30 +02:00
cketti
0553ad957b Convert Pop3StoreTest to Kotlin 2022-10-29 00:22:43 +02:00
cketti
fcd8d770c4 Rename .java to .kt 2022-10-29 00:19:37 +02:00
cketti
5d2b6a4578 Clean up Pop3ConnectionTest 2022-10-28 23:15:26 +02:00
cketti
b0b4d4693a Reduce the amount of mocking in Pop3ConnectionTest 2022-10-28 23:15:26 +02:00
cketti
d6c0dcda01 Convert Pop3ConnectionTest to Kotlin 2022-10-28 23:15:26 +02:00
cketti
8454833976 Rename .java to .kt 2022-10-28 23:15:26 +02:00
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