mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 09:52:16 -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;
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user