diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-10-15 23:46:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-10-15 23:46:28 +0800 |
commit | d623d8213349b1cba8c2bbd43fb7034c2f09e002 (patch) | |
tree | 037ec7f75ab1f9f4ff190627208dda1eacc31b41 | |
parent | 315ca196bd3f7b3157fd836954c84ea0360619bd (diff) | |
download | gsoc2013-evolution-d623d8213349b1cba8c2bbd43fb7034c2f09e002.tar gsoc2013-evolution-d623d8213349b1cba8c2bbd43fb7034c2f09e002.tar.gz gsoc2013-evolution-d623d8213349b1cba8c2bbd43fb7034c2f09e002.tar.bz2 gsoc2013-evolution-d623d8213349b1cba8c2bbd43fb7034c2f09e002.tar.lz gsoc2013-evolution-d623d8213349b1cba8c2bbd43fb7034c2f09e002.tar.xz gsoc2013-evolution-d623d8213349b1cba8c2bbd43fb7034c2f09e002.tar.zst gsoc2013-evolution-d623d8213349b1cba8c2bbd43fb7034c2f09e002.zip |
Realized I broke APOP authentication.
-rw-r--r-- | mail/e-mail-session.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c index c7784447bd..c14bdd56d8 100644 --- a/mail/e-mail-session.c +++ b/mail/e-mail-session.c @@ -1117,19 +1117,10 @@ mail_session_authenticate_sync (CamelSession *session, url = camel_service_get_camel_url (service); provider = camel_service_get_provider (service); - /* If a SASL mechanism was given and we can't find - * a CamelServiceAuthType for it, fail immediately. */ - if (mechanism != NULL) { + /* APOP is one case where a non-SASL mechanism name is passed, so + * don't bail if the CamelServiceAuthType struct comes back NULL. */ + if (mechanism != NULL) authtype = camel_sasl_authtype (mechanism); - if (authtype == NULL) { - g_set_error ( - error, CAMEL_SERVICE_ERROR, - CAMEL_SERVICE_ERROR_CANT_AUTHENTICATE, - _("No support for %s authentication"), - mechanism); - return FALSE; - } - } /* If the SASL mechanism does not involve a user * password, then it gets one shot to authenticate. */ |