1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00
Commit Graph

5423 Commits

Author SHA1 Message Date
cketti
9f4f0cf6a8 Modify BinaryTempFileBody to retain the encoded body
For now this breaks a lot of things, e.g. saving messages to the database
and making messages 7-bit safe.
2014-12-08 16:32:23 +01:00
cketti
d32d6eed0e Move "magic" from Part.setBody() implementations to MimeMessageHelper.setBody()
Now adding message bodies during parsing won't set/modify headers.
2014-12-08 16:32:23 +01:00
cketti
51a60b5ad3 Modify ReconstructMessageTest to highlight more problems 2014-12-08 16:32:23 +01:00
cketti
2404b80b04 Fix MessageTest now that we preserve line breaks in headers 2014-12-08 16:32:23 +01:00
cketti
bcb6c75c2e Add support for storing raw header fields 2014-12-08 16:32:23 +01:00
cketti
8630bb0ad4 Add simple test to check if writing a parsed message leads to input data 2014-12-08 16:32:23 +01:00
cketti
825c508ff6 Merge pull request #19 from k9mail/art/update-gradle
Update to be compatible with latest Android Studio
2014-12-07 20:52:26 +01:00
Art O Cathain
68c95d0283 Update to be compatible with latest Android Studio 2014-12-07 14:22:03 +00:00
cketti
878189baec Merge pull request #17 from k9mail/art/espresso-e2e-tests-2
Espresso tests for account setup
2014-12-07 04:40:47 +01:00
cketti
272a4bc1cf Bump version to 5.103 2014-12-06 01:37:08 +01:00
cketti
7cbea6e4b2 Prepare changelog for 5.103 2014-12-06 01:36:10 +01:00
cketti
3b2d625a09 Pull updated translations from Transifex 2014-12-06 01:21:57 +01:00
cketti
410edd7107 Change wording of setting option 2014-12-06 00:42:46 +01:00
cketti
7177afa4d2 Update Gradle Android Plugin to 1.0.0-rc4 2014-12-05 23:04:51 +01:00
Andrew Chen
105948d78c Oops, checking wrong platform capability. 2014-12-04 19:14:22 -08:00
Andrew Chen
14edb093f2 Merge pull request #512 from k9mail/lollipop_lock_screen_notifications
Lollipop lock screen notifications
2014-12-04 19:01:04 -08:00
Andrew Chen
1fa6e117e1 Add Lollipop lock screen notifications.
Add vector versions for some notification icons (yay Illustrator)
Add comments reminding people to add their settings to GlobalSettings.
<plurals> support for notification_new_messages_title
Not sure why #ffffffff is resulting in black with targetSdk 17.
2014-12-04 18:54:22 -08:00
cketti
b51ad495ed Merge pull request #513 from maniac103/fix-cert-exception-handling
Don't throw CertificateValidationException for all SSLExceptions.
2014-12-04 16:17:44 +01:00
Danny Baumann
aaf3963567 Don't throw CertificateValidationException for all SSLExceptions.
An interrupted connection attempt to the server yields an SSLException
as well, like this:

E/k9      ( 6937): Caused by: javax.net.ssl.SSLHandshakeException: Connection closed by peer
E/k9      ( 6937):      at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:302)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:598)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:560)
E/k9      ( 6937):      at com.fsck.k9.mail.store.ImapStore$ImapConnection.open(ImapStore.java:2459)

We don't want the user to notify of 'certificate problems' in that case.
Fix it by checking whether the SSLException was actually triggered by a
CertificateException.
2014-12-04 13:16:33 +01:00
Andrew Chen
54d6566fb5 Force gradlew (and other shell scripts) to use lf line endings. 2014-12-03 18:50:16 -08:00
cketti
2c81495aea Bump version to 5.102 2014-11-27 21:47:51 +01:00
cketti
68cee3e9a3 Update changelog for 5.102 2014-11-27 21:34:29 +01:00
cketti
98b5d63909 Merge branch 'open_attachment_improvements'
Conflicts:
	src/com/fsck/k9/helper/Utility.java
2014-11-27 21:03:15 +01:00
Art O Cathain
854b1b3ffc Add end-to-end tests using Espresso 2014-11-23 15:26:05 +00:00
Art O Cathain
552e552e88 Add unit tests for FileHelper.sanitizeFilename() 2014-11-18 23:50:14 +01:00
cketti
56c30095e2 Don't use dummy file path when resolving intents 2014-11-18 23:02:20 +01:00
cketti
d9b6e10cbe Change the way the best view intent is determined
First we try the original MIME type unless it's application/octet-stream.
Then we try the MIME type inferred from the attachment's file extension.
Then we fall back to application/octet-stream.

In all cases we first try the content:// URI, then a file:// URI.
2014-11-18 22:55:51 +01:00
cketti
a725099693 Merge pull request #499 from k9mail/remove_apg_interface
Remove APG legacy interface
2014-11-12 21:08:46 +01:00
cketti
526fa443a8 Merge branch 'pr/505'
Get more dependencies from jCenter
2014-11-12 20:55:14 +01:00
cketti
6542ba3a72 Reorder dependencies 2014-11-12 19:53:05 +01:00
cketti
c252335d2e Use jutf7 1.0.0 since 1.0.1-SNAPSHOT doesn't include any relevant improvements 2014-11-12 19:49:28 +01:00
cketti
9b61fe0f0e Merge remote-tracking branch 'k9mail_pgp_mime/master'
Conflicts:
	src/com/fsck/k9/activity/AccessibleEmailContentActivity.java
2014-11-12 19:22:53 +01:00
cketti
9e6fc7c7d1 Merge pull request #13 from k9mail/art/update-certificates-in-tests
Update certificates in tests
2014-11-12 16:30:53 +01:00
cketti
0f70d5db40 Merge pull request #12 from k9mail/art/warn-if-not-serializable
Art/warn if not serializable
2014-11-11 19:52:31 +01:00
cketti
bd4a236525 Merge pull request #11 from k9mail/art/fix-tests-on-jvm
fix tests on JVM
2014-11-11 19:46:58 +01:00
cketti
7211080415 Merge pull request #10 from k9mail/art/more-tidying-arrays
Replace many arrays with collections
2014-11-11 19:45:35 +01:00
cketti
87ca0d3d2a Use TemporaryAttachmentStore when viewing attachments using file:// URI 2014-11-11 02:11:51 +01:00
cketti
34cfd8e5b4 Extract file related helper functions into separate class 2014-11-11 01:04:39 +01:00
cketti
e64ca84f1b Simplify MediaScannerNotifier 2014-11-10 06:43:26 +01:00
cketti
c3f1420ef6 Don't open the file after the media scanner added it to the media content provider 2014-11-10 06:43:00 +01:00
cketti
dfd40659d1 Append file name to content:// URI
This allows intent filters with patterns for file extensions to match.
2014-11-10 05:46:38 +01:00
cketti
6a1905b7b7 If we can't find an app to view an attachment try again with a file:// URI
Sadly, some apps only support the 'file' scheme in their intent filters. Among
them is Android's own package installer.
2014-11-10 05:37:22 +01:00
cketti
44ecf5d588 Use MIME type used for intent resolution in content provider 2014-11-10 03:12:28 +01:00
cketti
f87ab53b9b Try original and inferred MIME type to find best viewer for attachment
In order for Android to find apps that are capable of opening an attachment for
viewing the ACTION_VIEW Intent needs to contain an appropriate MIME type.
Ideally, we'd use the MIME type specified for the attachment in the message.
But often the supplied MIME type is wrong/useless. So we look at the file
extension to try to come up with a sensible MIME type on our own. We then go
on to ask Android which of the two MIME types leads to more apps claiming to
be able to open our attachment for viewing and use that one.
2014-11-10 03:10:09 +01:00
cketti
11a9eff109 Extract intent creation code to method 2014-11-09 20:46:46 +01:00
cketti
6cb3c991db No longer pretend there are attachment types we don't care about 2014-10-20 21:26:18 -04:00
cketti
3c4ad91614 Fix method names/visibility 2014-10-20 21:24:18 -04:00
cketti
d3073be89a Rearrange fields/methods 2014-10-20 21:21:09 -04:00
cketti
83d876f246 Inline method 2014-10-20 21:16:31 -04:00
cketti
f6822c973d Clean up comments 2014-10-20 21:13:58 -04:00