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
This commit is contained in:
Jeffrey Stedfast
2003-01-13 20:48:54 +00:00
committed by Jeffrey Stedfast
parent b38b44f0f4
commit 8b75a400fe
2 changed files with 9 additions and 4 deletions

View File

@ -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/

View File

@ -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)