mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-17 21:32:26 -05:00
Added new authentication methods to SmtpTransport.createUri()
This commit is contained in:
parent
75dc38a1c4
commit
d87e25dde1
@ -165,7 +165,10 @@ public class SmtpTransport extends Transport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String authType = server.authenticationType;
|
String authType = server.authenticationType;
|
||||||
if (!"CRAM_MD5".equals(authType) && !"PLAIN".equals(authType)) {
|
if (!(AUTH_AUTOMATIC.equals(authType) ||
|
||||||
|
AUTH_LOGIN.equals(authType) ||
|
||||||
|
AUTH_PLAIN.equals(authType) ||
|
||||||
|
AUTH_CRAM_MD5.equals(authType))) {
|
||||||
throw new IllegalArgumentException("Invalid authentication type: " + authType);
|
throw new IllegalArgumentException("Invalid authentication type: " + authType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user