[evolution/gnome-3-30] [SRV config lookup] Preset authentication method for SMTP



commit 50d4f91674d03735f953aa12ac211f1280282072
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]