Fix bug #591676 (MSG_QUEUED lost on restart)
authorColin Leroy <colin@colino.net>
Wed, 28 Aug 2002 18:05:53 +0000 (18:05 +0000)
committerColin Leroy <colin@colino.net>
Wed, 28 Aug 2002 18:05:53 +0000 (18:05 +0000)
by not writing cache for F_QUEUE folderitems
[is it a good fix ?]

ChangeLog.claws
configure.in
src/main.c

index 9856ceb..e977dcc 100644 (file)
@@ -1,4 +1,10 @@
-2002-08-28 [mevlin]    0.8.2claws5
+2002-08-28 [colin]     0.8.2claws6
+       
+       * src/main.c
+               Ignore cache for queue folderitems
+               Fix bug #591676
+
+2002-08-28 [melvin]    0.8.2claws5
 
        * README.claws
                Fixed typos.
 
        * README.claws
                Fixed typos.
index ae6af87..da9fa9a 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws5
+EXTRA_VERSION=claws6
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 5c2a968..182a718 100644 (file)
@@ -449,10 +449,10 @@ static gint get_queued_message_num(void)
 
 static void save_all_caches(FolderItem *item, gpointer data)
 {
 
 static void save_all_caches(FolderItem *item, gpointer data)
 {
-       if(!item->cache)
+       if (!item->cache)
                return;
                return;
-               
-       folder_item_write_cache(item);
+       if (!item->stype == F_QUEUE)    
+               folder_item_write_cache(item);
 }
 
 static void initial_processing(FolderItem *item, gpointer data)
 }
 
 static void initial_processing(FolderItem *item, gpointer data)
@@ -472,6 +472,9 @@ static void initial_processing(FolderItem *item, gpointer data)
        
        folder_item_apply_processing(item);
 
        
        folder_item_apply_processing(item);
 
+       if (item->stype == F_QUEUE)
+               folder_item_scan(item);
+       
        debug_print("done.\n");
        STATUSBAR_POP(mainwin);
        main_window_cursor_normal(mainwin);
        debug_print("done.\n");
        STATUSBAR_POP(mainwin);
        main_window_cursor_normal(mainwin);