Commit Graph

5463 Commits

Author SHA1 Message Date
Dominik Schürmann e3fef1af98 Work on new pgp header 2015-01-27 17:50:40 +01:00
cketti 0e03f262b3 Make sure to close underlying InputStream after decoding attachments 2015-01-25 20:06:29 +01:00
cketti 378acbd313 Write large message parts to file system
Actually, we just move the temporary file to avoid having to copy the
data to a new file.
2015-01-25 19:25:00 +01:00
cketti 977d15c190 Refactor to improve readability 2015-01-23 15:08:56 +01:00
cketti 6825eafb87 Make column 'message_parts.data' a BLOB 2015-01-23 14:41:29 +01:00
cketti 564e2432e1 Get size of decoded body content when saving
Before downloading we show the encoded size of attachments. After download we
strip the transport encoding to find out the size of the decoded content.
2015-01-23 03:58:06 +01:00
cketti 98bdf54672 Don't save empty multipart body
This will correctly mark the body as missing when the message is written to
the database.
2015-01-23 03:57:13 +01:00
cketti 74d09943c0 Use MimeMessageHelper.setBody() when parsing BODYSTRUCTURE
This will correctly set the MIME type of the part containing the body.
Otherwise multiparts end up having a content type of text/plain (default)
in the database... oops.
2015-01-23 03:55:54 +01:00
cketti d2d85393d3 Save attachment count 2015-01-22 06:12:26 +01:00
cketti 5e4743bf66 Extract preview of message text 2015-01-22 05:18:50 +01:00
cketti fe7b88f7c2 Work around the BinaryTempFileBodyInputStream mess 2015-01-22 04:56:08 +01:00
cketti 64e92ab1c1 Remove unused LocalAttachment* classes 2015-01-22 04:18:20 +01:00
cketti c9b2ec533c Add MessagePreviewExtractor 2015-01-21 01:21:02 +01:00
cketti 23c9398c03 Merge branch 'master' into pgp_mime_preparations
Conflicts:
	k9mail/src/androidTest/java/com/fsck/k9/mailstore/LocalMessageTest.java
2015-01-20 18:35:07 +01:00
cketti 395b70fa22 Remove unused code 2015-01-20 16:37:30 +01:00
cketti da51bdf1b3 Save attachments in background thread 2015-01-19 23:35:14 +01:00
cketti a7b16c1210 Refresh thumbnail after downloading attachment 2015-01-19 23:08:41 +01:00
cketti 9363c5b276 Download missing parts before viewing or saving 2015-01-19 22:37:15 +01:00
cketti 585d9cbe7f Fix "Download complete message" 2015-01-18 01:33:50 +01:00
cketti 1e628e7177 Reduce exposure of SingleMessageView internals 2015-01-16 23:37:37 +01:00
cketti 658657447e Fix viewing attachment with alternative MIME type 2015-01-16 23:37:37 +01:00
cketti de2eb25446 Use Glide for thumbnail generation + image loading 2015-01-16 23:37:37 +01:00
cketti cb94b5b192 Store attachment information in LocalBodyPart 2015-01-16 05:05:11 +01:00
cketti ac365567ee Replace dummy URI in AttachmentViewInfo instances
This is a first step towards fixing viewing of attachments.
2015-01-16 00:12:47 +01:00
cketti 41bd420213 Include database ID in message parts reconstructed from the database 2015-01-15 23:48:11 +01:00
cketti 8fce9e3654 Move functionality from AttachmentView to AttachmentController 2015-01-15 11:37:23 +01:00
cketti 087238f507 Move AttachmentView to 'messageview' package 2015-01-15 08:25:43 +01:00
cketti 2e05127c97 Use a Loader to extract text of a message in a background thread 2015-01-14 09:58:31 +01:00
Jan Berkel ecd316d0af Simplify ImapConnection#connect 2015-01-14 04:41:21 +01:00
Jan Berkel 9523a589fc use `@Test(expected =` 2015-01-14 04:31:36 +01:00
Jan Berkel c79256684d simplify gradle config 2015-01-14 04:31:32 +01:00
Jan Berkel dfb025033d Convert remaining tests to JUnit4 2015-01-14 04:05:42 +01:00
Jan Berkel 4808406739 Make deleteCertificate null-safe 2015-01-14 03:45:09 +01:00
Jan Berkel 833d9c5de8 Base class is already annotated 2015-01-14 03:34:57 +01:00
Jan Berkel 79b03b5e4f Remove account after creation
* Avoid side-effects in static preferences which might interfere with other tests
2015-01-14 03:30:38 +01:00
Jan Berkel 4e964e271c Convert to JUnit4 test 2015-01-14 03:09:48 +01:00
Jan Berkel 0153766dd5 Convert to JUnit4 2015-01-14 03:09:00 +01:00
Jan Berkel 0f312f012e Create test mailboxes 2015-01-14 03:08:44 +01:00
Jan Berkel 055d4104b7 log ChangeLog click failure 2015-01-13 16:12:39 +01:00
Jan Berkel a15583a080 Start server early 2015-01-13 15:52:31 +01:00
Jan Berkel de4b6d1076 Merge pull request #531 from jberkel/imap-tests
Update greenmail + add more tests
2015-01-13 11:43:07 +01:00
Jan Berkel bdbe976396 Test connection w/o server 2015-01-13 10:09:42 +01:00
Jan Berkel e98f323222 Initialize settings in setUp() 2015-01-13 10:05:15 +01:00
Jan Berkel f7da704007 WS 2015-01-13 09:34:13 +01:00
cketti 78ed2a23b1 Use a Loader to load the message to view from the database 2015-01-13 04:17:25 +01:00
Jan Berkel 60070b7883 Add more tests + descriptive names 2015-01-13 01:59:51 +01:00
Jan Berkel 111212b391 Setup and tear down server between tests 2015-01-13 01:11:09 +01:00
Jan Berkel 7958467503 Convert from thread to AsyncTask for espresso tests 2015-01-13 01:11:09 +01:00
Jan Berkel b481d3f978 Adding tests for IMAP connection, use greenmail snapshot 2015-01-13 01:10:56 +01:00
cketti 787c014265 Create new package for UI code related to message viewing 2015-01-12 22:46:56 +01:00