[evolution-ews] Bug #690433 - Do not refresh folder on every message transfer



commit d28187519b4f4df3fa5a071d73035873d8c1ada0
Author: Milan Crha <mcrha redhat com>
Date:   Tue Mar 12 17:04:49 2013 +0100

    Bug #690433 - Do not refresh folder on every message transfer

 src/camel/camel-ews-folder.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index 6f6fdd8..cfc5954 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -1706,9 +1706,11 @@ ews_transfer_messages_to_sync (CamelFolder *source,
                        camel_folder_change_info_free (changes);
                }
 
-               /*update the store about the content of the source and destination folders*/
-               ews_refresh_info_sync (source, cancellable, NULL);
-               ews_refresh_info_sync (destination, cancellable, NULL);
+               /* update destination folder only if not frozen, to not update
+                  for each single message transfer during filtering
+                */
+               if (!camel_folder_is_frozen (destination))
+                       ews_refresh_info_sync (destination, cancellable, NULL);
        }
        g_free (dst_id);
 


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