aboutsummaryrefslogtreecommitdiffstats
path: root/modules/online-accounts/e-online-accounts-google.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/online-accounts/e-online-accounts-google.c')
-rw-r--r--modules/online-accounts/e-online-accounts-google.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/online-accounts/e-online-accounts-google.c b/modules/online-accounts/e-online-accounts-google.c
index 2c64218d57..ab394f622e 100644
--- a/modules/online-accounts/e-online-accounts-google.c
+++ b/modules/online-accounts/e-online-accounts-google.c
@@ -206,6 +206,13 @@ online_accounts_google_sync_mail (GoaObject *goa_object,
string = goa_account_get_id (goa_account);
camel_url_set_param (url, GOA_KEY, string);
+ if (new_account) {
+ e_account_set_bool (account, E_ACCOUNT_SOURCE_AUTO_CHECK, TRUE);
+ e_account_set_int (account, E_ACCOUNT_SOURCE_AUTO_CHECK_TIME, 10);
+
+ camel_url_set_param (url, "filter-inbox", "true");
+ }
+
g_free (account->source->url);
account->source->url = camel_url_to_string (url, 0);