From d87e25dde1faeb60c6cebe5268ff90ef2c6890fe Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 17 Oct 2011 04:57:01 +0200 Subject: [PATCH] Added new authentication methods to SmtpTransport.createUri() --- src/com/fsck/k9/mail/transport/SmtpTransport.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/transport/SmtpTransport.java b/src/com/fsck/k9/mail/transport/SmtpTransport.java index b8273a820..302acd3f1 100644 --- a/src/com/fsck/k9/mail/transport/SmtpTransport.java +++ b/src/com/fsck/k9/mail/transport/SmtpTransport.java @@ -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); }