aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-05-17 20:08:30 +0800
committerMilan Crha <mcrha@redhat.com>2012-05-17 20:09:30 +0800
commit7d337633ecc3a737580748c669e1f61144b80738 (patch)
treebd1b3b184d59ef7ca055b07e7ec79a79b362dc5f /modules
parenta0303ab5d220329fd23407149aaed1bdcdfb8c09 (diff)
downloadgsoc2013-evolution-7d337633ecc3a737580748c669e1f61144b80738.tar.gz
gsoc2013-evolution-7d337633ecc3a737580748c669e1f61144b80738.tar.zst
gsoc2013-evolution-7d337633ecc3a737580748c669e1f61144b80738.zip
Bug #676226 - Changing GOA mail account looses GOA key
Diffstat (limited to 'modules')
-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);