Commit graph

184 commits

Author SHA1 Message Date
Philip Whitehouse
95da33d226 Add tests for unusual email formats 2016-03-14 07:19:59 +00:00
Philip Whitehouse
5cd5b5fc55 Improving the WebDAV fetchMessage code and testing of it 2016-03-10 01:04:28 +00:00
Philip Whitehouse
9e67555407 Tests for WebDavMessage 2016-03-10 01:04:28 +00:00
Philip Whitehouse
1970b3f333 Create test infrastructure for WebDavMessage 2016-03-10 01:04:28 +00:00
Philip Whitehouse
aa602643d3 Add comment for future work 2016-03-10 01:04:27 +00:00
Philip Whitehouse
5ca1fd4575 Adding tests similar to those on ImapFolder to WebDavFolder 2016-03-10 01:04:27 +00:00
Philip Whitehouse
6daa513704 Improving test coverage of WebDAV 2016-03-10 01:04:27 +00:00
Philip
42da31c3b9 Rename WebDavHTTPClient.java to WebDavHttpClient.java 2016-03-10 01:04:27 +00:00
Philip Whitehouse
60a4cc7efa Extract another class 2016-03-10 01:04:27 +00:00
Philip Whitehouse
044564f843 Clean up prior to submitting a PR 2016-03-10 01:04:27 +00:00
Philip Whitehouse
2137e8bc68 Fix another bug with synchronizing messages 2016-03-10 01:04:26 +00:00
Philip Whitehouse
950dad02db Refactoring of WebDAV code 2016-03-10 01:04:08 +00:00
Philip Whitehouse
2bc92441e9 Fix bug fetching flags and envelopes 2016-03-10 00:34:58 +00:00
Philip Whitehouse
b12c048190 Support binary encoding 2016-03-05 14:46:05 +00:00
cketti
14054ec977 Avoid ClassCastException in ImapResponseParser
Fixes #811
2016-03-02 23:21:57 +01:00
cketti
a349398f4f Explicitly set time zone when testing date formatting
This should fix the test failure on CloudBees.
2016-02-27 07:13:34 +01:00
Vincent
f99dd61bc4 Merge pull request #1098 from k9mail/imap_store_refactoring
Refactor ImapStore
2016-02-26 14:40:55 +01:00
cketti
07c5f0ffba Use ThreadLocal for RFC3501_DATE
… instead of serializing access to one single SimpleDateFormat instance.
2016-02-24 11:34:03 +01:00
cketti
126a8766d6 Avoid incrementing field inside expression 2016-02-24 11:08:34 +01:00
cketti
f88a915a5d Don't hang on to ImapConnection for too long 2016-02-18 00:28:43 +01:00
cketti
ca4a6b6cfc Close connection when IDLE command fails 2016-02-17 20:14:01 +01:00
cketti
200ee27980 Don't hold 'connections' monitor while checking retrieved connection 2016-02-17 20:04:08 +01:00
cketti
66930c0081 Merge pull request #1048 from k9mail/mime-migration
Migrate old messages to new mime format
2016-02-13 01:25:17 +01:00
cketti
b34f3ad669 Make sure ImapFolderPusher is not started or stopped twice 2016-02-12 06:27:14 +01:00
cketti
01a14b9f1f Synchronize access to storedUntaggedResponses 2016-02-12 06:13:03 +01:00
cketti
41ca6b7899 Use volatile booleans for 'stop' and 'idling'
We don't use compound actions that would need to be protected.
2016-02-12 05:57:09 +01:00
cketti
42e07d0355 Move fields that are only used by listener thread into PushRunnable
Also, there's no need for them to use Atomic* instances.
2016-02-12 05:52:17 +01:00
cketti
b8957f6fee Move all messages that are only called from listener thread into PushRunnable 2016-02-12 05:44:49 +01:00
cketti
ca4e6c2139 Remove unnecessary method 2016-02-12 05:36:19 +01:00
cketti
1db9fc169e Make wakeLock final 2016-02-12 05:30:00 +01:00
cketti
af941396bc Make sure that stopping, then starting ImapPusher is atomic 2016-02-12 04:11:48 +01:00
cketti
2c5bcac66f Exclude CRLF when logging sent commands
Android Studio 2.0 beta 3 skips those log messages in its logcat view.
2016-02-11 23:55:02 +01:00
cketti
1d52a357a6 Make sure DONE continuation is only sent at appropriate times 2016-02-11 21:53:17 +01:00
cketti
690693a21c Synchronize access to listeningThread 2016-02-11 00:00:47 +01:00
cketti
23d4c3fd68 Reorder methods 2016-02-10 23:55:59 +01:00
cketti
51723e46ca Extract methods to make the code a bit more readable 2016-02-10 00:06:47 +01:00
cketti
4a80ab6aa3 Extract Push thread code to named inner class 2016-02-09 22:38:30 +01:00
cketti
6b4da35035 Remove unnecessary variable increment 2016-02-09 22:33:11 +01:00
cketti
5b58aac748 Remove unnecessary local variable 2016-02-09 22:28:21 +01:00
cketti
39c4cf3218 Code style fixes and minor cleanup 2016-02-09 22:25:37 +01:00
cketti
54963b6e1e Extract code to encode/decode folder names to FolderNameCodec 2016-02-09 21:41:55 +01:00
cketti
d1cbac47b1 Remove now unused methods from remote Folder subclasses 2016-02-09 19:03:12 +01:00
cketti
ab1e5ce691 Remove LocalFolder-specific methods from Folder 2016-02-09 18:53:59 +01:00
cketti
61e0df5513 Extract code to parse SEARCH response to SearchResponse 2016-02-09 18:24:56 +01:00
cketti
51ab4d23dc Extract code to parse COPYUID response to CopyUidResponse 2016-02-09 18:21:35 +01:00
cketti
ed7221be03 Extract code to parse SELECT/EXAMINE response to SelectOrExamineResponse 2016-02-09 18:21:07 +01:00
cketti
ef82fe9df1 Extract code to parse PERMANENTFLAGS to PermanentFlagsResponse 2016-02-09 17:37:29 +01:00
cketti
7875b4e99d Tidy up return type of getMessagesFromUids() 2016-02-09 05:01:04 +01:00
cketti
60da56fa7a Inline constant arguments for getMessagesFromUids() 2016-02-09 05:00:07 +01:00
cketti
a4072d30e5 Code style fixes and minor code cleanup 2016-02-09 04:54:05 +01:00