1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00
Commit Graph

1558 Commits

Author SHA1 Message Date
cketti
bc4218be55 Remove all entries without transport encryption from providers.xml 2014-03-05 07:07:43 +01:00
cketti
ff5edf43d4 Merge branch 'pr/453'
Authentication changes

 message to explain why this merge is necessary,
2014-03-05 06:19:55 +01:00
Dominik Schürmann
f5b1ed920b Handle SIGNATURE_SUCCESS_UNCERTIFIED, code cleanup 2014-03-04 15:10:20 +01:00
Joe Steele
daea7f1ecd Eliminate the 'if available' connection security options
These options originated in the AOSP email client from which K-9 Mail was
forked.  They provide an odd combination of 2 features:

1. Don't bother to authenticate the server's certificate (applies to both
SSL/TLS and STARTTLS); i.e., blindly accept all certificates.  This is
generally a bad security policy which is susceptible to MITM attacks.

2. If STARTTLS is selected but the server doesn't claim to support
STARTTLS, then proceed without using encryption.  This, too, is a bad
security policy which is susceptible to MITM attacks.

Since the time that K-9 Mail was forked, a couple things have changed:

> K-9 Mail has implemented the ability for users to review and permanently
accept individual certificates that would otherwise fail authentication.
With this ability, there is no need for a user to subject themselves to
the ongoing risks of feature 1. above.  Hence, this commit removes feature
1.

> The AOSP email client has changed its behavior and no longer permits a
security downgrade to an unencrypted connection if the server doesn't
claim to support STARTTLS (i.e., they eliminated feature 2. above). K-9
Mail should do the same.  It's unlikely that a server is going to provide
STARTTLS on an intermittent basis, so providing a contingency for such
unusual behavior is an unnecessary risk.  Hence, this commit removes that
feature as well.

Effect on existing users:

If the old connection security setting was "SSL/TLS (if available)" (which
now gets remapped to "SSL/TLS"), and the server does not provide a
certificate that can be authenticated, then a "Certificate error for
<account name>" notification is generated telling the user to check their
server settings.  Tapping the notification takes the user to the relevant
server settings, where the user can tap "Next" to review the certificate
and choose to permanently accept it.  This process would occur during the
first syncing of folders after application upgrade or (in the case of
SMTP) during the first attempt to send a message.

If the connection security setting was "STARTTLS (if available)" (which
now gets remapped to "STARTTLS"), and the server does not provide a
certificate that can be authenticated, then the same process as above
would occur.

If the old connection security setting was "STARTTLS (if available)", and
the server doesn't claim to support STARTTLS, then the user would get a
certificate error notification which would lead them to the server's
settings.  There they would need to choose a different connection security
-- most likely "NONE".  If they didn't change anything but instead just
tapped "Next", the server settings would be checked again and a dialog
would pop up saying, "Cannot connect to server. (STARTTLS connection
security not available)". (The implementation of notifications when
STARTTLS is not available is not actually included here -- it's in the
commit that follows.)

Regarding the changes to providers.xml:  in cases where the scheme ended
with "+ssl", the schemes were simply updated by appending "+".  In cases
where the scheme ended with "+tls", a check of the server was made to
assure that STARTTLS was available before appending "+" to the scheme.
Domains paran.com and nate.com failed the check and were removed because
no current information could be found.  Domains me.com and mac.com also
failed and were updated based on http://support.apple.com/kb/ht4864.
2014-03-03 17:23:00 -05:00
Dominik Schürmann
4a69ef1509 New OpenPGP Provider API 2014-03-02 16:51:47 +01:00
cketti
abc765e893 Don't combine strings in code 2014-03-01 05:12:01 +01:00
Joe Steele
540de158a0 Change the PLAIN auth. option text based on encryption
If the user chooses a connection security option which assures the use of
encryption, then the PLAIN auth. option is labeled "Normal password",
otherwise it is labeled "Password, transmitted insecurely".

This is similar to Thunderbird's behavior.
2014-02-25 15:22:44 -05:00
Joe Steele
f7d397ea09 Eliminate SMTP AUTOMATIC authentication
The server settings for IMAP and POP3 have no such AUTOMATIC setting.
(Nor does Thunderbird have any such setting.)

The AUTOMATIC option is no longer offered to users as a choice.  A
pre-existing setting will continue to be honored, but only to the extent
that it doesn't result in insecure password transmission.  Users in such a
situation will get a "Failed to send some messages" notification
containing the exception text that says to update their outgoing server
authentication setting.

One of the problems with "AUTOMATIC" is that users may not fully
understand its security implications.  For example, a MITM attack could
mask a server's support for STARTTLS and CRAM-MD5, resulting in password
disclosure in certain configurations.

This commit also makes changes to the SMTP authentication process.  No
attempt is made to authenticate using methods that the server does not
profess to support in its EHLO response.  This is the same behavior as
found in Thunderbird.
2014-02-25 15:22:43 -05:00
Joe Steele
dc9720ca13 Use localized strings for authentication type
AUTOMATIC = "Automatic"
PLAIN = "Normal password"
CRAM_MD5 = "Encrypted password"

SMTP also uses LOGIN.  No localized text was associated with that because
a future commit will remove that option.

(The text is similar to that of Thunderbird's)
2014-02-25 15:22:35 -05:00
cketti
dd4cbb7d3c Update changelog for 4.902 2014-02-23 01:04:01 +01:00
cketti
dd5ac0f1c4 Add mailbox.org to list of providers 2014-02-20 22:14:40 +01:00
cketti
92e9e6d140 Fix version codes in changelog 2014-02-14 01:25:54 +01:00
cketti
f1682fe517 Update changelog for 4.901 2014-02-13 04:23:25 +01:00
cketti
90f63ba057 Remove old setting for message content font size
- export new setting
- add upgrade code to convert old setting to new format
2014-02-13 04:22:45 +01:00
Koji Arai
94301e7e3b Updated Japanese translation of the changelog. 2014-02-08 09:41:24 +09:00
Koji Arai
0664029a0f Updated Japanese translation. catch up with 4955e34. 2014-02-08 00:52:12 +09:00
cketti
cf228583bc Merge pull request #448
Change message body font size with slider
2014-02-01 00:52:32 +01:00
cketti
f224483df4 Fix display error in account settings
* correctly initialize summary of 'Server search limit'.
* don't persist value in shared preferences
2014-01-31 22:10:28 +01:00
Sergii Pylypenko
67abde055a Change message body font size with slider, using new setTextZoom() WebView API, from 40% to 250% 2014-01-31 23:09:25 +02:00
Jesse Vincent
4214c7290e first pass at a changelog for 4.900 2014-01-20 21:39:41 -05:00
nysatrok
ecb4ed41ba Update providers.xml for German providers
Sources:
http://kundenservice.freenet.de/hilfe/mail4/email-programme/einstellungen-generell/generelle-einstellungen/index.html
http://hilfe.telekom.de/hsp/cms/content/HSP/de/3378/FAQ/theme-45858870/Internet/theme-45858718/Dienste/theme-45858716/E-Mail/theme-305642824/Allgemein/theme-57360865/IMAP/faq-45858521
https://hilfe.web.de/e-mail/imap.html
https://hilfe.gmx.net/mailprogramme/imap.html
2014-01-14 02:36:36 +01:00
pyler
168ac641e0 Add provider Outlook.sk
..and fix settings for Azet.sk
2014-01-14 02:36:28 +01:00
cketti
4955e34886 Merge pull request #437 from zjw/misc_clean_up 2014-01-05 04:30:28 +01:00
cketti
54faf52f16 Fix Danish translation 2014-01-05 03:51:21 +01:00
Igor Nedoboy
63e48f7e29 Update Russian translation 2014-01-05 00:50:01 +01:00
Mittaa
16b0797dc1 Update Danish translations 2014-01-05 00:49:07 +01:00
pyler
94cafccec2 Update Slovak translation 2014-01-05 00:42:30 +01:00
cketti
06ec852090 Rename plurals to make Transifex happy 2014-01-04 01:44:31 +01:00
Joe Steele
52d0460237 Fix typo 2013-12-29 19:48:38 -05:00
Joe Steele
0de72c31b4 Use a locale-specific date in the header of a quoted message
Also, include the sent-date in the header when using
the "prefix" quote style.  "Be like mutt" (and gmail,
and thunderbird)

Also, the quoteOriginalHtmlMessage method was using the mSourceMessage
field in various places when it should be using its originalMessage
parameter.

Related issues:  2249, 3456
2013-12-29 18:46:51 -05:00
Andrew Chen
043043d562 Merge pull request #432 from Mittaa/patch-1
Update da strings.xml
2013-12-27 16:48:51 -08:00
Andrew Chen
bb852bce8a Merge pull request #431 from miplopez/patch-1
Update es strings.xml
2013-12-27 16:47:25 -08:00
Arnout Engelen
87689120a5 Consistent Dutch translation for 'attachment' 2013-12-27 15:51:06 +01:00
Arnout Engelen
3204643e26 Add missing translations
colorizing missing contacts, visible refile actions, attachment dialog
2013-12-24 10:10:05 +01:00
Arnout Engelen
db1ebe5481 Spelling mistakes
bezittelijk voornaamwoord en d/t-fout voltooid deelwoord 'verversen'
2013-12-24 09:58:34 +01:00
Mittaa
9872bdb3ae Update strings.xml
Danish translation added. New to Github so hopefully I did the right thing :)
2013-12-23 11:21:10 +01:00
miplopez
2b32f7a6db Update strings.xml
Translation error (ES): L856 "inificada" --> "unificada"
2013-12-22 23:20:39 +01:00
pyler
75fc5f0d70 Add Azet.sk to providers.xml 2013-12-15 20:46:30 +01:00
ascob
18d80c8692 Add posteo.de to providers.xml
Add Posteo.de to providers.xml (according to https://autoconfig.thunderbird.net/v1.1/posteo.de and https://autoconfig.posteo.de/mail/config-v1.1.xml)
2013-12-15 20:40:47 +01:00
Erkan
388ee8e27d Update French translation 2013-12-15 16:58:58 +01:00
Marcio Zomb13
b06e912b20 Update Brazilian Portuguese translation 2013-12-15 16:58:33 +01:00
cketti
d4017d24fe Fix Ukrainian translation
Fixes issue 6101
2013-12-15 16:54:41 +01:00
cketti
211e989472 Fix dutch translation
Fixes issue 6103
2013-12-11 15:52:30 +01:00
cketti
4cdbe00732 Remove problematic linebreaks from strings files 2013-12-06 03:14:16 +01:00
cketti
d0a72b4f17 Replace no-break spaces with regular space characters 2013-12-06 03:13:50 +01:00
cketti
f4ebc098c4 Recreate app icon from SVG file
Add higher resolution icons so K-9 looks snazzy on newer devices.
2013-11-11 01:09:09 +01:00
cketti
febf9b2fb3 Clean up Hungarian translation 2013-11-10 22:58:16 +01:00
RootRulez
9fee3e50c8 Update Hungarian translation 2013-11-10 22:50:23 +01:00
igavio
2a77aa1e41 Update Greek translation 2013-11-10 22:49:42 +01:00
Igor Nedoboy
9ea241f897 Update Russian translation 2013-11-10 22:49:00 +01:00
Jan Urbánek
b4c4dea527 Update Czech translation 2013-11-10 22:48:22 +01:00
Jacek Sowiński
37272fbaf4 Update Polish translation
new strings + one typo
2013-11-10 22:47:36 +01:00
Koji Arai
6d08e69690 Fixed typo. 2013-11-06 23:39:08 +09:00
Koji Arai
fb6e8bc25b Updated Japanese translation of the changelog. 2013-11-06 23:23:56 +09:00
Jesse Vincent
0986e822d2 changelog for 4.701 2013-11-05 20:28:46 -05:00
Joe Steele
6089b9078e Fix missing 'download remainder' button. 2013-11-05 18:17:41 -05:00
Joe Steele
5957735a0b LinearLayout fill_parent
(Don't think it really matters.)
2013-11-05 18:17:39 -05:00
Joe Steele
94a4585317 Switch to using NonLockingScrollView
This implements the AOSP Email solution for incorporating
a Webview inside a ScrollView, while still being able to
scroll diagonally.

This replaces the functionality of TitleBarWebView (which
is now removed).
2013-11-05 16:26:23 -05:00
Koji Arai
f7562e1b0f Updated Japanese translation. catch up with ef01cab. 2013-10-28 21:27:34 +09:00
russian k-9 mail user
5d1abd89bf Update strings.xml 2013-10-21 05:05:09 +04:00
russian k-9 mail user
f57fd551e2 Sync with ChangeLog translation 2013-10-20 14:33:29 +04:00
cketti
ef3ba02a89 Merge pull request #400 from zjw/change_line_endings
Fix problems related to the saving and retrieval of drafts
2013-10-19 21:22:29 +02:00
cketti
a0709f2248 Remove newline in reply header of zh-TW translation 2013-10-19 20:42:48 +02:00
cketti
ad3c394322 Fix German translation 2013-10-19 18:28:43 +02:00
cketti
1279d597ac Fix format of Lithuanian translation 2013-10-19 18:27:08 +02:00
cketti
43d1084047 Run script to sync translations 2013-10-19 18:03:50 +02:00
cketti
aa81f78587 Add Lithuanian to list of supported languages 2013-10-19 18:03:50 +02:00
Marcio Zomb13
4442cd030f Update Brazilian Portuguese translation 2013-10-19 17:30:55 +02:00
russian k-9 mail user
4f6241a4bb Update Russian translation 2013-10-19 17:30:10 +02:00
pyler
a3d06b1271 Update Slovak translation 2013-10-19 17:29:31 +02:00
igavio
99c17ff796 Update Greek translation 2013-10-19 17:27:22 +02:00
Uni-
ffa3730f2f Update Korean translation 2013-10-19 17:27:14 +02:00
KwonNam Son
3a5965be08 Update Korean translation 2013-10-19 17:25:16 +02:00
gymka
418a8d9f67 Add Lithuanian translation 2013-10-19 17:25:05 +02:00
Koji Arai
dc42f2589d Updated Japanese translation of the changelog. 2013-10-12 08:11:12 +09:00
Joe Steele
ef01cabccc Remove \n from R.string.message_compose_reply_header_fmt
This string resource is used in two places -- both with and without the
linefeed at the end.  Instead of having a linefeed in the string and
having the code remove it if not needed, the linefeed is now omitted from
the string and the code adds it if needed.

Also, the line ending is changed from \n to \r\n.

Also, the string in the DE and FR locales had linefeeds at the start that
were removed so they match all the other locales.

(The string in the zh-rTW locale was left alone, since it had no
linefeeds.  It looks like that file has numerous instances where \n was
replaced with actual newlines, which is probably not correct.)
2013-10-11 11:39:48 -04:00
Joe Steele
bfb0316583 Fix fatal IndexOutOfBoundsException
The problem:

Configure the account (just an example -- problems can occur in other
configurations as well):
Message Format: HTML
Reply quoting style: Prefix
Quote message when replying: yes
Reply after quoted text: yes

Reply to a message that has a large quantity (20+) of \r\n scattered in
the body of its HTML version (not an unusual scenario).

Add a reply.  Save the message as a draft.  Go back & open the draft
again.  A fatal IndexOutOfBoundsException occurs.

The cause:

When the draft was saved, the X-K9mail-Identity header was computed and
added to the message, then the text of the message was processed with
MimeUtility.fixDraftTextBody, replacing all occurrences of \r\n with \n in
the quoted message before being saved in LocalStore, thus invalidating the
X-K9mail-Identity header.

The fix:

Remove MimeUtility.fixDraftTextBody and implement
MessageCompose$EolConvertingEditText instead.  Any message text placed in
an EolConvertingEditText widget is assured to have \n line endings.  Any
message text extracted from an EolConvertingEditText widget is assured to
have \r\n line endings.  The X-K9mail-Identity header will always be
computed correctly.

Issues thought to be related:  4782, 5010, 5634, 5725

As noted in some of the referenced issues, errors didn't always result in
a fatal exception, but instead with mixed up text.

Ref:  commit f9a35aeaee
2013-10-11 11:39:15 -04:00
Jesse Vincent
31b3646fc8 4.700 changelog 2013-10-10 20:42:22 -04:00
Jesse Vincent
decf9b7f6b Merge pull request #390 from bboa/master
Update strings.xml
2013-09-29 12:57:32 -07:00
pyler
72e9b3e5b8 Updated Slovak translation 2013-09-27 19:38:54 +02:00
cketti
f964cf40a4 Change wording in changelog; fix typos 2013-09-26 03:43:04 +02:00
Danny Baumann
9865968f46 Update German translation 2013-09-25 15:26:32 +02:00
cketti
2b7f5e7b70 Merge branch 'pick_attachment_fix'
Update LocalStore code to handle the newly introduced temporary files
for attachments

Conflicts:
	res/values/strings.xml
	src/com/fsck/k9/activity/MessageCompose.java
2013-09-25 05:22:00 +02:00
cketti
677d6c923d Don't stop the activity before attachments have been fetched
Display a progress dialog when the user tries to send the message or
save a draft and the attachments haven't been fetched completely.
2013-09-25 03:46:11 +02:00
cketti
62aa1b87d0 Fetch attachments while MessageCompose activity is running
Android allows other apps to access protected content of an app without requesting the
necessary permission when the app returns an Intent with FLAG_GRANT_READ_URI_PERMISSION.
This regularly happens as a result of ACTION_GET_CONTENT, i.e. what we use to pick content
to be attached to a message. Accessing that content only works while the receiving activity
is running. Afterwards accessing the content throws a SecurityException because of the
missing permission.
This commit changes K-9 Mail's behavior to copy the content to a temporary file in K-9's
cache directory while the activity is still running.

Fixes issue 4847, 5821

This also fixes bugs related to the fact that K-9 Mail didn't save a copy of attached content
in the message database.

Fixes issue 1187, 3330, 4930
2013-09-25 03:12:34 +02:00
russian k-9 mail user
ecf9e24469 Update strings.xml
(RU) Various improvements and fixes. The some terms are unified with desktop clients (e. g. Sylpheed).
2013-09-24 20:02:42 +04:00
Sander Bogaert
99942381cc Fix type in settings string 'visisble'. 2013-09-23 11:50:34 +02:00
Koji Arai
f93bade5df Updated Japanese translation of the changelog. 2013-09-19 00:17:21 +09:00
Koji Arai
80232132c5 Added detailed description for narrow devices 2013-09-18 16:52:17 +09:00
Koji Arai
852114d639 Updated Japanese translation. catch up with 58e7732. 2013-09-18 16:52:10 +09:00
Jesse Vincent
0b7cee6cc9 4.512 changelog 2013-09-16 10:13:56 -04:00
Andrew Chen
fdda5768fe Merge pull request #384 from bboa/patch-1
Update ru strings.xml
2013-09-13 14:38:23 -07:00
Andrew Chen
58e7732996 Add IMAP support for Outlook.com.
IMAP is no longer a Plus feature; removing the note saying that it is.

http://blogs.office.com/b/microsoft-outlook/archive/2013/09/12/outlook-com-now-with-imap.aspx
2013-09-13 14:36:02 -07:00
russian k-9 mail user
ebb8dcdc02 Update strings.xml 2013-09-13 13:22:47 +04:00
cketti
02c323e74a Clean up translations 2013-09-12 23:42:04 +02:00
cketti
444e6184d8 Merge pull request #382
Update russian translation
2013-09-12 23:27:02 +02:00
cketti
f12ae4e7d0 Merge pull request #379
Update French translation
2013-09-12 23:25:14 +02:00
russian k-9 mail user
ab7315e2f1 Update strings.xml
Updates and improvements (RU)
2013-09-12 19:16:26 +04:00
Erkan
68bcde5562 Update strings.xml 2013-09-11 12:40:45 +02:00
Jan Urbánek
e3bcdb9c82 new strings translation 2013-09-09 15:57:39 +02:00