- /* If the folder is remote, set the "Last updated" value */
- if (modest_tny_folder_is_remote_folder (folder)) {
- TnyAccount *account = modest_tny_folder_get_account (folder);
- ModestAccountMgr *mgr = modest_runtime_get_account_mgr ();
- const gchar *name;
- name = modest_tny_account_get_parent_modest_account_name_for_server_account (account);
- modest_account_mgr_set_last_updated (mgr, tny_account_get_id (account), time (NULL));
- if (!cancelled && !error)
- modest_account_mgr_set_server_account_username_has_succeeded (mgr, tny_account_get_id (account), TRUE);
- modest_account_mgr_set_account_busy (mgr, name, FALSE);
- g_object_unref (account);
- }
-