aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-29 11:11:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-29 11:11:56 +0800
commit7ffad86d872af64e2d2925b1652248506b5197c4 (patch)
tree7de5581967e9b101f0a6de625b1f0c8faba71b6e /mail/mail-send-recv.c
parent7978de790388841acfd3a3e7858cecd0da300048 (diff)
downloadgsoc2013-evolution-7ffad86d872af64e2d2925b1652248506b5197c4.tar
gsoc2013-evolution-7ffad86d872af64e2d2925b1652248506b5197c4.tar.gz
gsoc2013-evolution-7ffad86d872af64e2d2925b1652248506b5197c4.tar.bz2
gsoc2013-evolution-7ffad86d872af64e2d2925b1652248506b5197c4.tar.lz
gsoc2013-evolution-7ffad86d872af64e2d2925b1652248506b5197c4.tar.xz
gsoc2013-evolution-7ffad86d872af64e2d2925b1652248506b5197c4.tar.zst
gsoc2013-evolution-7ffad86d872af64e2d2925b1652248506b5197c4.zip
Call mail_autoreceive_setup() instead of mail_autoreceive_setup_account()
2001-10-28 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Call mail_autoreceive_setup() instead of mail_autoreceive_setup_account() since that code was completely broken anyway. * mail-send-recv.c (mail_autoreceive_setup_account): Removed. svn path=/trunk/; revision=14318
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c29
1 files changed, 7 insertions, 22 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 674873099c..be5b13f248 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -723,11 +723,14 @@ static void auto_clean_set(void *key, struct _auto_data *info, GHashTable *set)
/* call to setup initial, and after changes are made to the config */
/* FIXME: Need a cleanup funciton for when object is deactivated */
-static void
-autoreceive_setup_list(GSList *sources, gboolean clear_absent)
+void
+mail_autoreceive_setup (void)
{
GHashTable *set_hash;
-
+ GSList *sources;
+
+ sources = mail_config_get_sources();
+
if (!sources)
return;
@@ -769,28 +772,10 @@ autoreceive_setup_list(GSList *sources, gboolean clear_absent)
sources = sources->next;
}
- if (clear_absent)
- g_hash_table_foreach(set_hash, (GHFunc)auto_clean_set, auto_active);
+ g_hash_table_foreach(set_hash, (GHFunc)auto_clean_set, auto_active);
g_hash_table_destroy(set_hash);
}
-void
-mail_autoreceive_setup (void)
-{
- autoreceive_setup_list (mail_config_get_sources(), TRUE);
-}
-
-void
-mail_autoreceive_setup_account (MailConfigService *service)
-{
- GSList list;
-
- list.data = service;
- list.next = NULL;
-
- autoreceive_setup_list (&list, FALSE);
-}
-
/* we setup the download info's in a hashtable, if we later need to build the gui, we insert
them in to add them. */
void