call camel_folder_sync bypassing the folder lock. See
authorNot Zed <NotZed@Ximian.com>
Mon, 8 Sep 2003 20:59:01 +0000 (20:59 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Mon, 8 Sep 2003 20:59:01 +0000 (20:59 +0000)
2003-09-05  Not Zed  <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c (imap_noop): call
        camel_folder_sync bypassing the folder lock.  See
        imap_store_refresh_folders too.

camel/ChangeLog
camel/providers/imap/camel-imap-store.c

index 5d88a2c..24553b3 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-05  Not Zed  <NotZed@Ximian.com>
+
+       * providers/imap/camel-imap-store.c (imap_noop): call
+       camel_folder_sync bypassing the folder lock.  See
+       imap_store_refresh_folders too.
+
 2003-09-04  David Woodhouse  <dwmw2@infradead.org>
 
        * providers/camel-imap-store.[ch]: Add PREAUTH handling and
index 14ed76e..a95b1c7 100644 (file)
@@ -1621,8 +1621,8 @@ imap_noop (CamelStore *store, CamelException *ex)
        
        current_folder = imap_store->current_folder;
        if (current_folder && imap_summary_is_dirty (current_folder->summary)) {
-               /* let's sync the flags instead */
-               camel_folder_sync (current_folder, FALSE, ex);
+               /* let's sync the flags instead.  NB: must avoid folder lock */
+               ((CamelFolderClass *)((CamelObject *)current_folder)->klass)->sync(current_folder, FALSE, ex);
        } else {
                response = camel_imap_command (imap_store, NULL, ex, "NOOP");
                if (response)