changeset 5659:6b3214ab8632

[gaim-migrate @ 6073] Added gaim_account_set_check_mail(), and imported the pref. Now we just have to save it and use it again. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 02 Jun 2003 08:49:23 +0000
parents 060fb5fd081d
children 1709a545a7bd
files src/account.c src/gaimrc.c
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/account.c	Mon Jun 02 08:24:04 2003 +0000
+++ b/src/account.c	Mon Jun 02 08:49:23 2003 +0000
@@ -277,6 +277,16 @@
 }
 
 void
+gaim_account_set_check_mail(GaimAccount *account, gboolean value)
+{
+	g_return_if_fail(account != NULL);
+
+	account->check_mail = value;
+
+	schedule_accounts_save();
+}
+
+void
 gaim_account_set_int(GaimAccount *account, const char *name, int value)
 {
 	GaimAccountSetting *setting;
--- a/src/gaimrc.c	Mon Jun 02 08:24:04 2003 +0000
+++ b/src/gaimrc.c	Mon Jun 02 08:49:23 2003 +0000
@@ -568,10 +568,13 @@
 	if (strcmp(p->option, "user_opts"))
 		return account;
 
-	/* TODO: Handle OPT_ACCT_AUTO and OPT_ACCT_MAIL_CHECK */
+	/* TODO: Handle OPT_ACCT_AUTO */
 
 	flags = atoi(p->value[0]);
 
+	if (flags & OPT_ACCT_MAIL_CHECK)
+		gaim_account_set_check_mail(account, TRUE);
+
 	if (!(flags & OPT_ACCT_REM_PASS))
 		gaim_account_set_remember_password(account, FALSE);