0.8.8claws110
authorChristoph Hohmann <reboot@gmx.ch>
Fri, 17 Jan 2003 20:08:49 +0000 (20:08 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Fri, 17 Jan 2003 20:08:49 +0000 (20:08 +0000)
* src/folder.c
        fix wrong folder stats update when ignored message is
        deleted

ChangeLog.claws
configure.ac
src/folder.c

index 055eefc..818c95e 100644 (file)
@@ -1,3 +1,9 @@
+2003-01-17 [christoph] 0.8.8claws110
+
+       * src/folder.c
+               fix wrong folder stats update when ignored message is
+               deleted
+
 2003-01-17 [colin]     0.8.8claws109
        
        * src/mainwindow.c
index a5da3fe..9f930a9 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws109
+EXTRA_VERSION=claws110
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index eaae529..e4eb3c0 100644 (file)
@@ -1715,9 +1715,9 @@ gint folder_item_move_msg(FolderItem *dest, MsgInfo *msginfo)
                                               msginfo->msgnum);
                        msgcache_remove_msg(msginfo->folder->cache, msginfo->msgnum);
 
-                       if (MSG_IS_NEW(msginfo->flags))
+                       if (MSG_IS_NEW(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
                                msginfo->folder->new--;
-                       if (MSG_IS_UNREAD(msginfo->flags))
+                       if (MSG_IS_UNREAD(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
                                msginfo->folder->unread--;
                        if (MSG_IS_UNREAD(msginfo->flags) && procmsg_msg_has_marked_parent(msginfo))
                                msginfo->folder->unreadmarked--;
@@ -1846,9 +1846,9 @@ gint folder_item_move_msgs_with_dest(FolderItem *dest, GSList *msglist)
                                folder_item_read_cache(item);
                        msgcache_remove_msg(item->cache, msginfo->msgnum);
 
-                       if (MSG_IS_NEW(msginfo->flags))
+                       if (MSG_IS_NEW(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
                                msginfo->folder->new--;
-                       if (MSG_IS_UNREAD(msginfo->flags))
+                       if (MSG_IS_UNREAD(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
                                msginfo->folder->unread--;
                        if (MSG_IS_UNREAD(msginfo->flags) && procmsg_msg_has_marked_parent(msginfo))
                                msginfo->folder->unreadmarked--;
@@ -2046,9 +2046,9 @@ gint folder_item_remove_msg(FolderItem *item, gint num)
 
        msginfo = msgcache_get_msg(item->cache, num);
        if (msginfo != NULL) {
-               if (MSG_IS_NEW(msginfo->flags))
+               if (MSG_IS_NEW(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
                        item->new--;
-               if (MSG_IS_UNREAD(msginfo->flags))
+               if (MSG_IS_UNREAD(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
                        item->unread--;
                if (MSG_IS_UNREAD(msginfo->flags) && procmsg_msg_has_marked_parent(msginfo))
                        item->unreadmarked--;