mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Backwards compatibility for the CRAM-MD5 implementation
This commit is contained in:
parent
3914a78b53
commit
2c9fc8b997
@ -158,10 +158,19 @@ public class ImapStore extends Store
|
||||
if (uri.getUserInfo() != null)
|
||||
{
|
||||
String[] userInfoParts = uri.getUserInfo().split(":");
|
||||
if (userInfoParts.length == 2)
|
||||
{
|
||||
mAuthType = AuthType.PLAIN;
|
||||
mUsername = userInfoParts[0];
|
||||
mPassword = userInfoParts[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
mAuthType = AuthType.valueOf(userInfoParts[0]);
|
||||
mUsername = userInfoParts[1];
|
||||
mPassword = userInfoParts[2];
|
||||
}
|
||||
}
|
||||
|
||||
if ((uri.getPath() != null) && (uri.getPath().length() > 0))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user