EMailLocal: Change how we set "need-summary-check".

Set the CamelLocalStore:need-summary-check property directly instead of
through camel_url_set_param().  This value is not stored permanently.
This commit is contained in:
Matthew Barnes
2011-08-15 10:21:49 -04:00
committed by Rodrigo Moya
parent d9bc9909ad
commit aa28e1dea3

View File

@ -70,7 +70,6 @@ e_mail_local_init (EMailSession *session,
url = camel_url_new ("maildir:", NULL);
temp = g_build_filename (data_dir, "local", NULL);
camel_url_set_path (url, temp);
camel_url_set_param (url, "need-summary-check", "no");
g_free (temp);
temp = camel_url_to_string (url, 0);
@ -79,6 +78,10 @@ e_mail_local_init (EMailSession *session,
CAMEL_PROVIDER_STORE, &error);
g_free (temp);
/* Shouldn't need to worry about other mail applications
* altering files in our local mail store. */
g_object_set (service, "need-summary-check", FALSE, NULL);
if (error != NULL)
goto fail;