[evolution/account-mgmt: 14/33] Temporarily disable email password storage.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/account-mgmt: 14/33] Temporarily disable email password storage.
- Date: Fri, 18 Mar 2011 01:53:11 +0000 (UTC)
commit 28382c2da1ef168c72c076ac99c3c53efdc765da
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Dec 8 00:21:51 2010 -0500
Temporarily disable email password storage.
mail/e-mail-session.c | 6 ++++++
mail/em-account-editor.c | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c
index e701509..cb64623 100644
--- a/mail/e-mail-session.c
+++ b/mail/e-mail-session.c
@@ -618,7 +618,9 @@ mail_session_get_password (CamelSession *session,
if (domain == NULL)
domain = "Mail";
+#if 0 /* ACCOUNT_MGMT */
ret = e_passwords_get_password (domain, key);
+#endif /* ACCOUNT_MGMT */
if (ret == NULL || (flags & CAMEL_SESSION_PASSWORD_REPROMPT)) {
gboolean remember;
@@ -672,12 +674,14 @@ mail_session_get_password (CamelSession *session,
if (!e_account_writable (NULL, E_ACCOUNT_SOURCE_SAVE_PASSWD))
eflags |= E_PASSWORDS_DISABLE_REMEMBER;
+#if 0 /* ACCOUNT_MGMT */
ret = e_passwords_ask_password (
title, domain, key, prompt,
eflags, &remember, NULL);
if (!ret)
e_passwords_forget_password (domain, key);
+#endif /* ACCOUNT_MGMT */
g_free (title);
@@ -717,7 +721,9 @@ mail_session_forget_password (CamelSession *session,
domain = (domain != NULL) ? domain : "Mail";
key = mail_session_make_key (service, item);
+#if 0 /* ACCOUNT_MGMT */
e_passwords_forget_password (domain, key);
+#endif /* ACCOUNT_MGMT */
g_free (key);
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 984d13f..dfe03a8 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -3658,8 +3658,10 @@ forget_password_if_needed (EAccount *original_account, EAccount *modified_accoun
auth_domain = "Mail";
url_str = camel_url_to_string (url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS);
+#if 0 /* ACCOUNT_MGMT */
if (url_str)
e_passwords_forget_password (auth_domain, url_str);
+#endif /* ACCOUNT_MGMT */
g_free (url_str);
camel_url_free (url);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]