[evolution-mapi] Bug 766682 - Three-state value for 'download messages for offline' per folder



commit 2d757af2355b2d39bbdf3e67e0aa161e48fa4d0d
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 25 22:08:29 2016 +0200

    Bug 766682 - Three-state value for 'download messages for offline' per folder

 src/camel/camel-mapi-folder.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index fb8806b..e7ea317 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -773,7 +773,6 @@ camel_mapi_folder_fetch_summary (CamelFolder *folder, GCancellable *cancellable,
 {
        gboolean status, has_obj_folder;
        gboolean full_download;
-       CamelSettings *settings;
        CamelStore *store = camel_folder_get_parent_store (folder);
        CamelStoreInfo *si = NULL;
        CamelMapiStoreInfo *msi = NULL;
@@ -789,13 +788,7 @@ camel_mapi_folder_fetch_summary (CamelFolder *folder, GCancellable *cancellable,
 
        camel_folder_freeze (folder);
 
-       settings = camel_service_ref_settings (CAMEL_SERVICE (store));
-
-       full_download =
-               camel_offline_settings_get_stay_synchronized (CAMEL_OFFLINE_SETTINGS (settings)) ||
-               camel_offline_folder_get_offline_sync (CAMEL_OFFLINE_FOLDER (folder));
-
-       g_object_unref (settings);
+       full_download = camel_offline_folder_can_downsync (CAMEL_OFFLINE_FOLDER (folder));
 
        camel_operation_push_message (cancellable, _("Refreshing folder '%s'"), camel_folder_get_display_name 
(folder));
 


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