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



commit ccacbe5d128dff4dac72cd2af37e80303b377a45
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Aug 15 10:21:49 2011 -0400

    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.

 mail/e-mail-local.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-local.c b/mail/e-mail-local.c
index cebbd4d..183635a 100644
--- a/mail/e-mail-local.c
+++ b/mail/e-mail-local.c
@@ -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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]