From 5799cfdceaf45654bba88a2f82b72b0095773ccc Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 3 Oct 2002 00:15:23 +0000 Subject: /home/notzed/gnome/head/evolution/camel 2002-10-02 Not Zed * providers/imap/camel-imap-folder.c (get_matching): Set *set to NULL if we dont get any matches. (imap_sync_online): If we get no matches, skip any work, also reorder some code to make it easier to skip. See #31031. * providers/imap/camel-imap-store.c (imap_check_folder_still_extant): Default to "TRUE", if the list command failed, it probably means a server problem, assume the worst. This makes imap_refresh_info not clear the exception and crash. Fixes crash of #31000. 2002-10-01 Not Zed * providers/imap/camel-imap-folder.c (imap_refresh_info): Make sure we pass the exception to imap_folder_selected(), otherwise failures can be lost. See bug #31000. 2002-10-01 Not Zed * camel-folder.c (thaw): Add an assertion that the frozen count>0. (freeze): Same for >= 0. * camel-vee-folder.c (camel_vee_folder_remove_folder): Use the unmatched freeze_count when thawing folders removed from unmatched, rather than the folder's freeze_count. Might be related to #27391. svn path=/trunk/; revision=18314 --- camel/camel-folder.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'camel/camel-folder.c') diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 4941915598..a374e1a8d5 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -1458,6 +1458,8 @@ freeze (CamelFolder *folder) { CAMEL_FOLDER_LOCK(folder, change_lock); + g_assert(folder->priv->frozen >= 0); + folder->priv->frozen++; d(printf ("freeze(%p '%s') = %d\n", folder, folder->full_name, folder->priv->frozen)); @@ -1488,6 +1490,8 @@ thaw (CamelFolder * folder) CAMEL_FOLDER_LOCK(folder, change_lock); + g_assert(folder->priv->frozen > 0); + folder->priv->frozen--; d(printf ("thaw(%p '%s') = %d\n", folder, folder->full_name, folder->priv->frozen)); -- cgit v1.2.3