Commit graph

440 commits

Author SHA1 Message Date
Philip Whitehouse
ad1328d775 Fixing remaining Timber errors in k9mail-library 2017-03-22 16:36:41 +01:00
Philip Whitehouse
f7c4b0e7c4 Fixing string concat in Timber logging 2017-03-22 16:35:02 +01:00
Philip Whitehouse
0b9decdf42 Fixing string concat in Timber logging 2017-03-22 16:35:02 +01:00
Philip Whitehouse
d9bde84daf Fix Exception logging Timber lint errors 2017-03-22 16:35:02 +01:00
Philip Whitehouse
5e4068de45 Fix concatenation in Timber logging 2017-03-22 16:35:02 +01:00
Philip Whitehouse
62a8bae494 Fixing exception logging with Timber 2017-03-22 16:35:02 +01:00
Philip Whitehouse
31e41e7b02 Remove a few more references 2017-03-22 16:35:02 +01:00
Philip Whitehouse
a2092d6ac3 Tidy up unused imports 2017-03-22 16:35:02 +01:00
Philip Whitehouse
b3ebd4d978 Remove remaining android.util.Log statements 2017-03-22 16:33:07 +01:00
Philip Whitehouse
878fdc0a79 Timber library p1 2017-03-22 16:33:07 +01:00
cketti
cf02795d5e Merge pull request #2389 from vatsalsura/Issue#2318
Use SystremClock.elapsedRealtime() to measure durations
2017-03-22 05:41:18 +01:00
Philip
93589171d8 Merge pull request #2396 from philipwhiuk/webDavStoreCheckStyle
Tidy up checkstyle and similar code quality issues in WebDavStore
2017-03-16 15:18:16 +00:00
Philip Whitehouse
54c2e29388 Fix checkstyle issues in WebDavStore 2017-03-16 14:35:54 +00:00
Philip Whitehouse
309b6891f4 Checkstyle fixed for JisSupport 2017-03-15 15:36:22 +00:00
Philip Whitehouse
e4db6fc8b1 Code style fixes for StatusCodeDetail 2017-03-15 14:14:08 +00:00
Vatsal Sura
ede2b0fb17 Use SystemClock.elapsedRealtime() to measure durations 2017-03-15 13:05:23 +05:30
Philip Whitehouse
71a6cd3d9e Add extra variable for clarity 2017-03-14 17:19:44 +00:00
Philip Whitehouse
481823c7d8 Refactor variable name 2017-03-14 17:06:08 +00:00
cketti
188720d7ff Code cleanup 2017-03-14 06:34:32 +01:00
cketti
7f7a8902a9 Extract classes 2017-03-14 05:00:15 +01:00
cketti
0b22cd5b8f Move SmtpTransport to separate package 2017-03-14 04:54:26 +01:00
cketti
f927eadbdb Remove custom join method 2017-03-14 04:49:38 +01:00
cketti
34588c1d9d Nicer API for sending SMTP commands 2017-03-14 04:13:50 +01:00
Philip Whitehouse
2e38bba70a Add test for case sensitivity of extensions 2017-03-04 23:23:12 +00:00
Philip Whitehouse
a6ad98e9da SMTPTransport - Improve multi-line response handling, remove deprecated API and implement RFC 2034 2017-03-04 23:20:46 +00:00
cketti
7a22658c75 Merge pull request #2317 from philipwhiuk/closeBadSmtpConnection
Close SMTP connections that failed to open properly
2017-03-04 11:46:33 +01:00
Philip Whitehouse
3670f94424 Close SMTP connections that failed to open properly 2017-03-02 20:22:53 +00:00
Hari
f3dcb729a7 Added sender field to message view 2017-02-28 12:06:23 +01:00
cketti
08bc332237 Refactor FixedLengthInputStreamTest 2017-02-28 10:34:11 +01:00
daquexian
5cf490c36b Unit tests for FixedLengthInputStream 2017-02-28 10:34:11 +01:00
cketti
47b86f6146 Merge pull request #2231
Unit tests for SmtpDataStuffing
2017-02-21 10:24:41 +01:00
cketti
238cf80ec9 Fix SMTP dot stuffing at start of stream 2017-02-21 10:22:05 +01:00
cketti
69ba305f2a Refactor tests 2017-02-21 10:21:48 +01:00
shonramamurthy
0fafe3dc18 Issue#2210 : Unit Tests for SmtpDataStuffing. 2017-02-21 10:14:41 +01:00
cketti
fc90a8eadb Merge pull request #2234 from philipwhiuk/testSendPendingMessages
MessagingController improvements
2017-02-17 16:18:48 +01:00
Philip Whitehouse
c45251f66e Rename getInstance() to getTransport() 2017-02-16 23:17:30 +00:00
cketti
329ed78c5d Merge pull request #2215 from philipwhiuk/webDavAppendTimeout
WebDAV: Use the proper sendRequest mechanism to append messages
2017-02-15 01:33:24 +01:00
cketti
56adeb8129 Merge pull request #2229 from philipwhiuk/encodedPersonalTest
AddressTest - Refactor and test UTF-8 encoding
2017-02-15 00:40:57 +01:00
Philip Whitehouse
2e01043a28 Test sending of pending messages 2017-02-13 23:52:31 +00:00
Philip Whitehouse
805420d3fc AddressUTF-8Test 2017-02-12 22:45:19 +00:00
Philip Whitehouse
2cec47491d WebDAV: Use the proper sendRequest mechanism to append messages 2017-02-12 21:58:36 +00:00
Joël Troch
7d628cf719 Make Hex.encodeHex returns a String (was char[]) 2017-02-09 14:54:27 +01:00
Philip Whitehouse
9207afdc69 Address: Handle getHostname when mAddress is null 2017-02-08 22:53:08 +00:00
cketti
19b7d4491d Merge pull request #2193 from k9mail/robolectric-update
Update robolectric, use Runner class instead of annotations
2017-02-07 05:06:39 +01:00
Dominik Schürmann
e829196034 Set robolectric sdk to 22 2017-02-06 11:25:02 +01:00
Sebastian Kürten
f4b3ef3b41 Fix a few Javadoc typos 2017-02-06 08:48:24 +01:00
Dominik Schürmann
874943885f Update robolectric, use Runner classes 2017-02-05 23:44:35 +01:00
cketti
3bd84de9c9 Merge pull request #2144 from k9mail/GH-2134_authentication_failure_handling
Handle connection closing after authentication failure
2017-01-31 20:17:57 +01:00
Philip Whitehouse
5a51523cc9 Address file clean-up 2017-01-29 11:27:20 +00:00
cketti
f34abe36c0 Handle connection closing after authentication failure
Fixes #2134
2017-01-27 03:29:11 +01:00
cketti
6738b497f0 Merge pull request #2115 from philipwhiuk/addressFixes
Improve behaviour of Address.equals with partial information
2017-01-26 10:52:58 +01:00
cketti
c24c89e76a Use IntelliJ-generated equals() method for Address 2017-01-25 16:29:28 +01:00
cketti
0f8b4cc144 Merge pull request #1778 from philipwhiuk/newCiphers
Don't reorder TLS ciphers on newer Android versions
2017-01-22 15:10:01 +01:00
Philip Whitehouse
c8eaba861c Fix Address.equals 2017-01-22 13:44:49 +00:00
Philip Whitehouse
059064c9f1 Don't reorder TLS ciphers on newer Android versions 2017-01-22 12:27:34 +00:00
Philip Whitehouse
252aedccd4 Separate WebDAV URI handling into separate classes 2017-01-21 16:22:56 +00:00
cketti
5f4fc19f1d Fix test names 2017-01-13 13:14:11 +01:00
cketti
025502ceb5 Don't crash on unknown content transfer encoding 2017-01-12 21:08:09 +01:00
Vincent Breitmoser
c5234d88e0 set content-transfer-encoding for RawDataBody in setBody 2017-01-10 15:11:41 +01:00
cketti
db791579c1 Add support for obsolete header field format
Putting whitespace between header field name and colon is valid in the
obsolete syntax.
2017-01-05 07:09:43 +01:00
cketti
b7adc5e574 Merge pull request #1939 from k9mail/GH-1936_add_support_for_delimiter_value_nil
Add support for delimiter value NIL in LIST responses
2017-01-04 07:31:00 +01:00
cketti
d3310b5656 Add support for delimiter value NIL in LIST responses 2017-01-03 17:41:08 +01:00
cketti
55c87fcaaf Properly handle exceptions thrown by ImapResponseCallback
Fixes #1919
2017-01-03 00:24:16 +01:00
cketti
9d18ed97fe Fix TestImapResponseCallback 2017-01-02 21:48:15 +01:00
cketti
de60e0e8c4 Merge pull request #1835 from k9mail/flowed-display
Support display of format=flowed (rfc2646)
2017-01-01 02:47:40 +01:00
cketti
40e5f03804 Avoid NPE in Address.hashCode()
Fixes #1874
2016-12-28 22:24:43 +01:00
Vincent Breitmoser
a055ed42a8 don't handle format parameter in setBody(), style fixes 2016-12-12 14:24:30 +01:00
Vincent Breitmoser
dc3d1f0e87 support display of format=flowed (rfc2646) 2016-12-12 14:24:30 +01:00
cketti
15ca92414b Merge pull request #1747 from k9mail/xoauth2Backend
Back-end changes for Google XOAUTH2
2016-12-12 03:14:59 +01:00
cketti
f9ed304770 Don't pass OAuth2TokenProvider to RemoteStore and Transport 2016-12-12 02:48:55 +01:00
cketti
74017c926e Code style fixes 2016-12-12 02:48:55 +01:00
cketti
8def88afcb Merge pull request #1565 from k9mail/boundary_generator_optimization
Optimize BoundaryGenerator
2016-12-12 00:42:37 +01:00
cketti
5fca3c871d Merge pull request #1847 from k9mail/multipart-attachments
Handle attachments with CHILD_PART_CONTAINS_DATA data location
2016-12-11 02:45:00 +01:00
Vincent Breitmoser
0ecbf441c1 handle attachments with CHILD_PART_CONTAINS_DATA data location (message/rfc822) 2016-12-11 02:33:56 +01:00
cketti
68e3c2a431 Avoid crashing with NPE when creating exception message 2016-12-09 04:59:52 +01:00
cketti
87e13ef800 Merge pull request #1836 from k9mail/multipart-digest-content-type
Properly handle multipart/digest content type
2016-12-09 00:18:59 +01:00
Vincent Breitmoser
0beff4cdb8 use message/rfc822 as default content type for multipart/digest subparts 2016-12-07 00:23:28 +01:00
cketti
4855d48ba3 Merge pull request #1805 from philipwhiuk/unsupportedEncodingHandling
Handle e-mails with unsupported encoding better
2016-12-05 18:05:16 +01:00
Philip Whitehouse
53e8d92066 Handle NIL date - per RFC3501 4.5 2016-11-27 03:09:41 +00:00
Philip Whitehouse
1497b5f781 Simplify based on feedback 2016-11-24 23:11:03 +00:00
Philip Whitehouse
3e6625dd24 Rename exception and update test 2016-11-21 12:46:40 +00:00
Philip Whitehouse
d220b29a2b Handle e-mails with unsupported encoding 2016-11-21 12:15:03 +00:00
cketti
48581bd53c Throw instead of returning null when Body.getInputStream() is not supported
Inspired by trying to find out what happened in issue #1794
2016-11-14 12:18:08 +01:00
Vincent Breitmoser
cedaecb38e Merge pull request #1769 from k9mail/attachment-ninjafix
use AttachmentTempFileProvider to expose file-backed content uris
2016-11-08 11:21:39 +01:00
cketti
fbecc40d01 Use okio with AttachmentTempFileProvider 2016-11-08 09:07:52 +01:00
Philip Whitehouse
76536ce5c9 WebDAV: Improve logging when we get an unexpected redirect during sync 2016-11-05 17:25:44 +01:00
Philip Whitehouse
79c1f921f9 Clean-up following code review thanks to Valodim 2016-10-27 02:15:53 +01:00
Philip Whitehouse
25cba114a6 Minor changes to front-end and interface to handle no implementation 2016-10-24 12:40:31 +01:00
Philip Whitehouse
7774ebc788 Back-end changes for Google XOAUTH2 2016-10-24 12:27:45 +01:00
Jan Berkel
8b1c768483 Inject config from properties file 2016-10-19 12:35:28 +02:00
Jan Berkel
0342648568 Merge pull request #1734 from k9mail/test_cleanup
Clean up ImapFolderTest
2016-10-19 10:53:54 +02:00
cketti
e2f5719826 Override hostname used for EHLO command in tests 2016-10-19 10:20:27 +02:00
cketti
81245150d7 Tweak test names 2016-10-19 09:57:52 +02:00
cketti
457f69a94e Add missing assertions to SmtpTransportTest 2016-10-19 09:57:52 +02:00
cketti
5ab9de5f55 Make tests more concise to improve readability 2016-10-19 09:57:52 +02:00
cketti
2ecd7f0e4e Add nicer API to build test messages 2016-10-19 09:57:52 +02:00
cketti
edbda6df26 Move test helper classes to different package 2016-10-19 09:57:52 +02:00
cketti
82bc18673c Code style fixes 2016-10-19 09:56:16 +02:00
Philip Whitehouse
a2b545fc39 SMTP: Further test coverage for various cases 2016-10-19 09:56:16 +02:00
Philip Whitehouse
d1904900c8 SMTP: Add test for 8-bit encoding behaviour 2016-10-19 09:56:16 +02:00