[evolution-data-server] GOA: Honor GoaMail's "smtp-use-auth" setting.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] GOA: Honor GoaMail's "smtp-use-auth" setting.
- Date: Thu, 15 Aug 2013 13:21:50 +0000 (UTC)
commit 462a170ff99b0f3fdca02cb37bccd2f4768a59b0
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Aug 15 09:13:57 2013 -0400
GOA: Honor GoaMail's "smtp-use-auth" setting.
.../module-gnome-online-accounts.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/modules/gnome-online-accounts/module-gnome-online-accounts.c
b/modules/gnome-online-accounts/module-gnome-online-accounts.c
index 2b1f87f..c963b41 100644
--- a/modules/gnome-online-accounts/module-gnome-online-accounts.c
+++ b/modules/gnome-online-accounts/module-gnome-online-accounts.c
@@ -36,6 +36,7 @@
#define CAMEL_IMAP_PROVIDER_NAME "imapx"
#define CAMEL_SMTP_PROVIDER_NAME "smtp"
+#define CAMEL_SMTP_MECHANISM_NAME "LOGIN"
#define CAMEL_OAUTH_MECHANISM_NAME "XOAUTH"
#define CAMEL_OAUTH2_MECHANISM_NAME "XOAUTH2"
@@ -481,6 +482,12 @@ gnome_online_accounts_config_smtp (EGnomeOnlineAccounts *extension,
CAMEL_NETWORK_SETTINGS (settings),
goa_mail_get_smtp_user_name (goa_mail));
+ /* If not using auth, leave the auth mechanism NULL. */
+ if (goa_mail_get_smtp_use_auth (goa_mail))
+ camel_network_settings_set_auth_mechanism (
+ CAMEL_NETWORK_SETTINGS (settings),
+ CAMEL_SMTP_MECHANISM_NAME);
+
/* Prefer "use_tls" over "use_ssl" if both are set. */
camel_network_settings_set_security_method (
CAMEL_NETWORK_SETTINGS (settings),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]