reimplement ignore thread
authorChristoph Hohmann <reboot@gmx.ch>
Thu, 18 Oct 2001 20:00:59 +0000 (20:00 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Thu, 18 Oct 2001 20:00:59 +0000 (20:00 +0000)
ChangeLog.claws
configure.in
src/procmsg.c

index 8549222..bb11a54 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-18 [christoph] 0.6.3claws24
+
+       * src/procmsg.c
+               reimplement ignore thread
+       
 2001-10-18 [hoa]        0.6.3claws23
        * src/folderview.c
        * src/grouplistdialog.[ch]
index 93a2575..cebdeac 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws23
+EXTRA_VERSION=claws24
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 31ea663..a3c756d 100644 (file)
@@ -513,8 +513,13 @@ GNode *procmsg_get_thread_tree(GSList *mlist)
 
                if (msginfo->inreplyto) {
                        parent = g_hash_table_lookup(table, msginfo->inreplyto);
-                       if (parent == NULL)
+                       if (parent == NULL) {
                                parent = root;
+                       } else {
+                               if(MSG_IS_IGNORE_THREAD(((MsgInfo *)parent->data)->flags)) {
+                                       MSG_SET_PERM_FLAGS(msginfo->flags, MSG_IGNORE_THREAD);
+                               }
+                       }
                }
                node = g_node_insert_data_before
                        (parent, parent == root ? parent->children : NULL,
@@ -534,6 +539,9 @@ GNode *procmsg_get_thread_tree(GSList *mlist)
                                g_node_unlink(node);
                                g_node_insert_before
                                        (parent, parent->children, node);
+                               if(MSG_IS_IGNORE_THREAD(((MsgInfo *)parent->data)->flags)) {
+                                       MSG_SET_PERM_FLAGS(msginfo->flags, MSG_IGNORE_THREAD);
+                               }
                        }
                }
                node = next;