# HG changeset patch # User Christian Hammond # Date 1054543763 0 # Node ID 6b3214ab8632b2b10a247ad67d4deb5dd5d0523f # Parent 060fb5fd081dd4cb815a397d40922e53fd372e96 [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 diff -r 060fb5fd081d -r 6b3214ab8632 src/account.c --- 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; diff -r 060fb5fd081d -r 6b3214ab8632 src/gaimrc.c --- 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);