diff options
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 5d88a2cf14..24553b3022 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -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 diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index 14ed76ed1f..a95b1c7c7a 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -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) |