[evolution] [SRV config lookup] Preset authentication method for SMTP



commit dc612a5e447248a0490bb49a61157f90e3b135e2
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 19 21:45:44 2018 +0100

    [SRV config lookup] Preset authentication method for SMTP
    
    This is to have enabled authentication for the SMTP part, if configured,
    thus the first attempt to send a mail would ask for the credentials,
    if needed.
    
    Related to https://gitlab.gnome.org/GNOME/evolution/issues/238

 src/modules/config-lookup/e-srv-config-lookup.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/modules/config-lookup/e-srv-config-lookup.c b/src/modules/config-lookup/e-srv-config-lookup.c
index d2d016822d..6e49292274 100644
--- a/src/modules/config-lookup/e-srv-config-lookup.c
+++ b/src/modules/config-lookup/e-srv-config-lookup.c
@@ -174,6 +174,12 @@ srv_config_lookup_domain_sync (EConfigLookup *config_lookup,
 
                                        e_config_lookup_result_simple_add_string (lookup_result, 
extension_name,
                                                "backend-name", known_services[ii].evo_protocol);
+
+                                       if (known_services[ii].kind == E_CONFIG_LOOKUP_RESULT_MAIL_SEND) {
+                                               /* Preset authentication method for SMTP, thus it 
authenticates by default */
+                                               e_config_lookup_result_simple_add_string (lookup_result, 
E_SOURCE_EXTENSION_AUTHENTICATION,
+                                                       "method", "PLAIN");
+                                       }
                                } else if (known_services[ii].kind == E_CONFIG_LOOKUP_RESULT_COLLECTION) {
                                        gboolean is_calendar = g_str_equal (known_services[ii].evo_protocol, 
"caldav");
                                        gchar *url;


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