aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c7
1 files changed, 3 insertions, 4 deletions
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)