1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Added new authentication methods to SmtpTransport.createUri()

This commit is contained in:
cketti 2011-10-17 04:57:01 +02:00
parent 75dc38a1c4
commit d87e25dde1

View File

@ -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);
} }