aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-09 08:13:32 +0800
committerDan Winship <danw@src.gnome.org>2000-08-09 08:13:32 +0800
commit01f333dee52a481a633858ef563dab221f01b945 (patch)
tree6ba50d0bd008d267aab42b39edce31d253eb41a6 /mail/mail-config.c
parent234e613bc3293628516fc38ad6e695b02a8b11a4 (diff)
downloadgsoc2013-evolution-01f333dee52a481a633858ef563dab221f01b945.tar
gsoc2013-evolution-01f333dee52a481a633858ef563dab221f01b945.tar.gz
gsoc2013-evolution-01f333dee52a481a633858ef563dab221f01b945.tar.bz2
gsoc2013-evolution-01f333dee52a481a633858ef563dab221f01b945.tar.lz
gsoc2013-evolution-01f333dee52a481a633858ef563dab221f01b945.tar.xz
gsoc2013-evolution-01f333dee52a481a633858ef563dab221f01b945.tar.zst
gsoc2013-evolution-01f333dee52a481a633858ef563dab221f01b945.zip
Add "Don't delete messages from server" button to remote SOURCEs that
* mail-config-gui.c: Add "Don't delete messages from server" button to remote SOURCEs that aren't STORAGEs (ie, POP). (provider_list): Only list SOURCEs. (ie, not mh) * mail-config.c: Save/load "keep_on_server" flag. * mail-ops.c (fetch_remote_mail): New function, split out of real_fetch_mail. Deals with copying mail from a remote server into a temporary mbox, possibly using a CamelUIDCache to leave the messages on the server. svn path=/trunk/; revision=4617
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index c90ac45ef6..3427080cff 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -86,6 +86,7 @@ service_copy (MailConfigService *source)
newsource = g_new0 (MailConfigService, 1);
newsource->url = g_strdup (source->url);
+ newsource->keep_on_server = source->keep_on_server;
return newsource;
}
@@ -202,6 +203,9 @@ mail_config_read ()
path = g_strdup_printf ("url_%d", i);
s->url = gnome_config_get_string (path);
g_free (path);
+ path = g_strdup_printf ("keep_on_server_%d", i);
+ s->keep_on_server = gnome_config_get_bool (path);
+ g_free (path);
config->sources = g_slist_append (config->sources, s);
}
@@ -299,6 +303,9 @@ mail_config_write ()
path = g_strdup_printf ("url_%d", i);
gnome_config_set_string (path, s->url);
g_free (path);
+ path = g_strdup_printf ("keep_on_server_%d", i);
+ gnome_config_set_bool (path, s->keep_on_server);
+ g_free (path);
}
gnome_config_pop_prefix ();