aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-01-14 04:48:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-01-14 04:48:54 +0800
commit8b75a400feebc8b524424d4d5e4ce9001d44003a (patch)
treefe7abe90fb4354ccd3f6598b6b6b8ce9ce87a488 /mail
parentb38b44f0f4e931de9c66826ad0f31197e055d54f (diff)
downloadgsoc2013-evolution-8b75a400feebc8b524424d4d5e4ce9001d44003a.tar.gz
gsoc2013-evolution-8b75a400feebc8b524424d4d5e4ce9001d44003a.tar.zst
gsoc2013-evolution-8b75a400feebc8b524424d4d5e4ce9001d44003a.zip
Save the auto-check timeout value. (account_new_from_xml): Load the
2003-01-13 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (account_to_xml): Save the auto-check timeout value. (account_new_from_xml): Load the auto-check-timeout value. svn path=/trunk/; revision=19429
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-config.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 4a84b7d401..c0ef75e560 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-13 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-config.c (account_to_xml): Save the auto-check timeout
+ value.
+ (account_new_from_xml): Load the auto-check-timeout value.
+
2003-01-13 Dan Winship <danw@ximian.com>
* folder-info.c: s/BonoboXObject/BonoboObject/
diff --git a/mail/mail-config.c b/mail/mail-config.c
index c1769bc49b..3864f57e8c 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -383,8 +383,7 @@ account_new_from_xml (char *in)
account->source->save_passwd = xml_get_bool (node, "save-passwd");
account->source->keep_on_server = xml_get_bool (node, "keep-on-server");
account->source->auto_check = xml_get_bool (node, "auto-check");
-
- /* FIXME: account->source->auto_check_time */
+ account->source->auto_check_time = xml_get_int (node, "auto-check-timeout");
cur = node->children;
while (cur != NULL) {
@@ -493,11 +492,11 @@ account_to_xml (MailConfigAccount *account)
xmlSetProp (src, "save-passwd", account->source->save_passwd ? "true" : "false");
xmlSetProp (src, "keep-on-server", account->source->keep_on_server ? "true" : "false");
xmlSetProp (src, "auto-check", account->source->auto_check ? "true" : "false");
+ sprintf (buf, "%d", account->source->auto_check_time);
+ xmlSetProp (src, "auto-check-timeout", buf);
if (account->source->url)
xmlNewTextChild (src, NULL, "url", account->source->url);
- /* FIXME: save auto-check timeout value */
-
xport = xmlNewChild (root, NULL, "transport", NULL);
xmlSetProp (xport, "save-passwd", account->transport->save_passwd ? "true" : "false");
if (account->transport->url)