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