diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-config.c | 7 |
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) |