* src/folder.c
authorChristoph Hohmann <reboot@gmx.ch>
Thu, 14 Nov 2002 17:19:17 +0000 (17:19 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Thu, 14 Nov 2002 17:19:17 +0000 (17:19 +0000)
        fix segfault when deleting messages from IMAP folders
        (closes bug [ 635641 ] Crash deleting mail in IMAP trash)

ChangeLog.claws
configure.in
src/folder.c

index 038da84..e653c0e 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-14 [christoph] 0.8.5claws150
+
+       * src/folder.c
+               fix segfault when deleting messages from IMAP folders
+               (closes bug [ 635641 ] Crash deleting mail in IMAP trash)
+
 2002-11-14 [colin]     0.8.5claws149
 
        * src/compose.c
index 9ecae07..43f5c3b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws149
+EXTRA_VERSION=claws150
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index bf8c67b..5f81a6f 100644 (file)
@@ -2011,18 +2011,19 @@ gint folder_item_remove_msgs(FolderItem *item, GSList *msglist)
        Folder *folder;
        gint ret = 0;
 
+       folder = item->folder;
+
        g_return_val_if_fail(item != NULL, -1);
        
-       folder = item->folder;
+       if (!item->cache) folder_item_read_cache(item);
+
        if (folder->remove_msgs) {
                ret = folder->remove_msgs(folder, item, msglist);
                if (ret == 0)
-                       folder->scan(folder);
+                       folder_item_scan(item);
                return ret;
        }
 
-       if (!item->cache) folder_item_read_cache(item);
-
        while (msglist != NULL) {
                MsgInfo *msginfo = (MsgInfo *)msglist->data;