* 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 86b700c40b24b871b06f704d5f1cee256b69a3f0..1bb3cdb39173855181299094added742334276ad 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 060b7b967d0b1f7a4dfc68777652148294e7a3fd..3149a1fcf42c75be17daf8d59e5fc39048958bf8 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 9fc79f721e3e2aa85dc204c152b576800ae56c5b..d95bf838057f071549d93d64a12867ba2496dd8a 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 1133a33f76593c456a592818d30444307d2f3de3..046d2310b5d3f4b04a022ef13df093dd7c639f27 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))