Art O Cathain
02c0b5f2a3
Use collections instead of arrays to enable stronger typing and reduce cruft
2014-10-05 10:37:36 +01:00
Joe Steele
f7fb0cca41
Compare Enum types with ==, !=
...
Per comments in PR #473
https://github.com/k9mail/k-9/pull/474#commitcomment-7416979
https://github.com/k9mail/k-9/pull/474#commitcomment-7416999
2014-08-18 18:12:39 -04:00
Joe Steele
373c7569ed
Fix password prompts on account import
...
Don't prompt if server's AuthType == EXTERNAL
Don't prompt for SMTP servers that don't require authentication
(no user name).
2014-08-11 11:06:46 -04:00
Joe Steele
34fd6d3ea7
Import/Export client certificate alias setting
2014-08-11 11:06:40 -04:00
Dominik Schürmann
aad171ff7e
Client Certificate Authentication
2014-06-05 21:03:18 +02:00
cketti
3ca03e8a9d
Use SSL/TLS as fallback when importing server settings
2014-03-05 06:29:56 +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
cketti
75fc76773d
Make sure settings import doesn't degrade connection security
...
Rewrite the now obsolete values "SSL_TLS_OPTIONAL" and "STARTTLS_OPTIONAL"
to their "*_REQUIRED" counterparts before import.
2014-03-05 05:32:00 +01:00
Miltos Allamanis
c17d0323f2
Renamed "identitiy" to "identity".
...
The naturalize tool detected that using "identity" is more consistent
with the current codebase state:
* "identity" in SettingsImporter is 78.46% probable ("identitiy" 21.54%)
2014-02-26 14:49:24 +00: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
András Veres-Szentkirályi
cbbd0bc405
use more idiomatic String.isEmpty() instead of comparing length to 0
2014-02-15 23:59:24 +01:00
cketti
dc8cb3ba17
Fix indentation/code style
2013-03-06 06:16:07 +01:00
Uni-
91a32e9c92
Fix NPE on isAccountNameUsed
2013-03-05 16:29:03 +09:00
Danny Baumann
0fac8e999d
Clean up date handling.
...
Remove home-grown date formatting, and replace it by usage of the
DateUtils class which is present since API level 3.
2013-02-11 15:19:15 +01:00
cketti
edfae1906a
Make sure we always have an account name when importing settings
...
This avoids a NullPointerException in the dialog that allows selecting
which accounts to import.
2012-05-06 21:02:41 +02:00
cketti
be2aac52a8
Reload accounts after writing imported account settings to storage
...
This makes sure that when the next account is imported it will see the
account just imported. That's necessary e.g. when going though all
accounts to find the next free account number, or when avoiding account
name conflicts.
2012-01-21 03:10:40 +01:00
cketti
61ca1a2ae2
Use internal representation for settings during the upgrade process
...
This avoids constant conversion between the string representation used
in preference storage and the internal representation.
2011-12-11 06:02:31 +01:00
cketti
18a58e2872
Added code to upgrade settings on import
...
This allows us to import files with an outdated content version, then
upgrade the settings to the current content version.
2011-12-11 05:16:22 +01:00
cketti
d57e684296
Extended *Settings classes to handle multiple versions
2011-12-11 05:16:22 +01:00
cketti
d6c03de6f5
Fixed logic bug that prevented imported accounts from being recognized
...
We have to add new account UUIDs to "accountUuids" for them to show up
in the account list.
2011-11-07 01:45:52 +01:00
cketti
9fa802afe2
Validate file format version and content version of settings file
2011-10-18 01:30:41 +02:00
cketti
e7ad0e296e
Validate account UUID on import
2011-10-17 23:33:32 +02:00
cketti
52a92d93a1
Add dialog to ask for server passwords after import
2011-10-17 04:34:26 +02:00
cketti
849a4e37a0
Mark accounts as disabled on import
...
If the settings file doesn't contain passwords for the incoming and
outgoing servers we disable those accounts.
2011-10-16 19:24:31 +02:00
cketti
f5e684310e
Renamed StorageImportExportException to SettingsImportExportException
2011-10-14 06:00:10 +02:00
cketti
c835bb757a
Renamed StorageImporter to SettingsImporter
2011-10-14 05:58:55 +02:00