[evolution-ews/gnome-3-34] Prefill email address as user name when creating new account



commit ef87ca56acdaeaf1b0f44fea0a9c624282e61b36
Author: Milan Crha <mcrha redhat com>
Date:   Fri Oct 4 08:15:24 2019 +0200

    Prefill email address as user name when creating new account
    
    Related to https://gitlab.gnome.org/GNOME/evolution-ews/issues/53#note_617812

 src/configuration/e-mail-config-ews-backend.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/configuration/e-mail-config-ews-backend.c b/src/configuration/e-mail-config-ews-backend.c
index e62d3922..51f18c49 100644
--- a/src/configuration/e-mail-config-ews-backend.c
+++ b/src/configuration/e-mail-config-ews-backend.c
@@ -521,8 +521,10 @@ mail_config_ews_backend_setup_defaults (EMailConfigServiceBackend *backend)
                camel_ews_settings_set_hosturl (ews_settings, hosturl);
                camel_ews_settings_set_email (ews_settings, email_address);
 
+               /* Prefill email address as the user name, it's needed for office365.com
+                  server, but also on-premise servers support it. */
                network_settings = CAMEL_NETWORK_SETTINGS (settings);
-               camel_network_settings_set_user (network_settings, parts[0]);
+               camel_network_settings_set_user (network_settings, email_address);
 
                g_free (hosturl);
        }


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