one more fix to processing rules
authorColin Leroy <colin@colino.net>
Sat, 9 Nov 2002 02:50:10 +0000 (02:50 +0000)
committerColin Leroy <colin@colino.net>
Sat, 9 Nov 2002 02:50:10 +0000 (02:50 +0000)
ChangeLog.claws
configure.in
src/folder.c

index 737d696bf3915980a27b285fdb5342dd58c2a48a..65a3f1c5d29b450124528618dc598e6d1e0e9341 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-09 [colin]     0.8.5claws101
+
+       * src/folder.c
+               One more fix for processing rules
+
 2002-11-08 [colin]     0.8.5claws100
        
        * src/matcher.c
index 9fd89f6a02e4b7e2dcf6e924360efce6b45fff20..49b9289e0397d8fcaa28ca16c27a656ed061ad97 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws100
+EXTRA_VERSION=claws101
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 73d3d11b246376f10da6a3901f38fb6e7d2739fc..b650d1fd863fa63a6444237134a213d604d2d115 100644 (file)
@@ -1544,12 +1544,6 @@ FolderItem *folder_item_move_to(FolderItem *src, FolderItem *dest)
        }
        
        /* update rules */
-       debug_print("updating rules ....\n");
-       prefs_filtering_rename_path(srcpath, g_strconcat(dstpath, 
-                                               G_DIR_SEPARATOR_S, 
-                                               g_basename(srcpath), 
-                                               NULL));
-
        src->folder->remove_folder(src->folder, src);
        src_node = g_node_find(src->folder->node, G_PRE_ORDER, G_TRAVERSE_ALL, src);
        if (src_node) 
@@ -1558,6 +1552,12 @@ FolderItem *folder_item_move_to(FolderItem *src, FolderItem *dest)
                debug_print("can't remove node: is null !\n");
        /* not to much worry if remove fails, move has been done */
        
+       debug_print("updating rules ....\n");
+       prefs_filtering_rename_path(srcpath, g_strconcat(dstpath, 
+                                               G_DIR_SEPARATOR_S, 
+                                               g_basename(srcpath), 
+                                               NULL));
+
        folder_write_list();
 
        g_free(srcpath);