* src/folder.c
authorChristoph Hohmann <reboot@gmx.ch>
Thu, 1 Aug 2002 20:50:31 +0000 (20:50 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Thu, 1 Aug 2002 20:50:31 +0000 (20:50 +0000)
        don't free the cache of the opened
        folder in the summaryview
* src/summaryview.c
        don't unset flags, if it is not required

ChangeLog.claws
configure.in
src/folder.c
src/summaryview.c

index 86b700c..1bb3cdb 100644 (file)
@@ -1,3 +1,11 @@
+2002-08-01 [christoph] 0.8.1claws9
+
+       * src/folder.c
+               don't free the cache of the opened
+               folder in the summaryview
+       * src/summaryview.c
+               don't unset flags, if it is not required
+
 2002-08-01 [paul]      0.8.1claws8
 
        * sync with 0.8.1cvs8
index 060b7b9..3149a1f 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws8
+EXTRA_VERSION=claws9
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 9fc79f7..d95bf83 100644 (file)
@@ -1099,6 +1099,9 @@ void folder_find_expired_caches(FolderItem *item, gpointer data)
        if(item->cache == NULL)
                return;
 
+       if(item->opened > 0)
+               return;
+
        difftime = (gint) (time(NULL) - msgcache_get_last_access_time(item->cache));
        expiretime = prefs_common.cache_min_keep_time * 60;
        debug_print(_("Cache unused time: %d (Expire time: %d)\n"), difftime, expiretime);
@@ -1114,6 +1117,9 @@ void folder_item_free_cache(FolderItem *item)
        if(item->cache == NULL)
                return;
        
+       if(item->opened > 0)
+               return;
+
        folder_item_write_cache(item);
        msgcache_destroy(item->cache);
        item->cache = NULL;
@@ -1138,7 +1144,7 @@ void folder_clean_cache_memory()
 
                        debug_print(_("Freeing cache memory for %s\n"), item->path);
                        memusage -= msgcache_get_memory_usage(item->cache);
-                       folder_item_free_cache(item);
+                       folder_item_free_cache(item);
                        listitem = listitem->next;
                }
                g_slist_free(folder_item_list);
index 1133a33..046d231 100644 (file)
@@ -2579,6 +2579,9 @@ static void summary_mark_row_as_read(SummaryView *summaryview,
 
        msginfo = gtk_ctree_node_get_row_data(ctree, row);
 
+       if(!MSG_IS_NEW(msginfo->flags) && !MSG_IS_UNREAD(msginfo->flags))
+               return;
+
        if (MSG_IS_NEW(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
                summaryview->newmsgs--;
        if (MSG_IS_UNREAD(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))