aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-09 11:10:13 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-09 11:10:13 +0800
commit0885119ef7c4bf7123d822e001c99c15e0fffcae (patch)
tree00f15d5721b5a78b2004ef3e4e0a425be6e96771 /mail/em-utils.c
parent58af720ebbfba0f47daae448ffcf52d5cd5cff20 (diff)
downloadgsoc2013-evolution-0885119ef7c4bf7123d822e001c99c15e0fffcae.tar.gz
gsoc2013-evolution-0885119ef7c4bf7123d822e001c99c15e0fffcae.tar.zst
gsoc2013-evolution-0885119ef7c4bf7123d822e001c99c15e0fffcae.zip
** Fix for bug #307410
svn path=/trunk/; revision=33776
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 7fba93cd35..78e5cbca06 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -2107,3 +2107,28 @@ em_utils_snoop_type(CamelMimePart *part)
/* We used to load parts to check their type, we dont anymore,
see bug #11778 for some discussion */
}
+
+void
+em_utils_clear_get_password_canceled_accounts_flag (void)
+{
+ EAccountList *accounts;
+
+ accounts = mail_config_get_accounts ();
+ if (accounts) {
+ EIterator *iter;
+
+ for (iter = e_list_get_iterator ((EList *) accounts);
+ e_iterator_is_valid (iter);
+ e_iterator_next (iter)) {
+ EAccount *account = (EAccount *) e_iterator_get (iter);
+
+ if (account && account->source)
+ account->source->get_password_canceled = FALSE;
+
+ if (account && account->transport)
+ account->transport->get_password_canceled = FALSE;
+ }
+
+ g_object_unref (iter);
+ }
+}