[evolution/evolution-3-12] Bug 738296 - Handle "password-encrypted" in autoconfig data



commit c5aef2059bb3ace1a0d78366380aed85afc24fb9
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Oct 10 11:07:33 2014 -0400

    Bug 738296 - Handle "password-encrypted" in autoconfig data
    
    <authentication>password-encrypted</authentication> apparently maps to
    CRAM-MD5 for all server types (IMAP/POP3/SMTP), or at least that's how
    Thunderbird interprets it.

 mail/e-mail-autoconfig.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-autoconfig.c b/mail/e-mail-autoconfig.c
index 93261c4..c7cc0b3 100644
--- a/mail/e-mail-autoconfig.c
+++ b/mail/e-mail-autoconfig.c
@@ -317,6 +317,14 @@ mail_autoconfig_parse_text (GMarkupParseContext *context,
                        closure->result->set = TRUE;
                }
 
+               /* "password-encrypted" apparently maps to CRAM-MD5,
+                * or at least that's how Thunderbird interprets it. */
+
+               if (g_str_equal (string->str, "password-encrypted")) {
+                       closure->result->auth_mechanism = g_strdup ("CRAM-MD5");
+                       closure->result->set = TRUE;
+               }
+
                /* XXX Other <authentication> values not handled,
                 *     but they are corner cases for the most part. */
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]