fix thread by subject/sort by date
authorPaul Mangan <paul@claws-mail.org>
Wed, 2 Jul 2003 08:57:08 +0000 (08:57 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 2 Jul 2003 08:57:08 +0000 (08:57 +0000)
ChangeLog.claws
configure.ac
src/procmsg.c

index 7681cbe..2b66103 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-02 [paul]      0.9.0claws71
+
+       * src/procmsg.c
+               fix thread by subject/sort by date
+
 2003-07-01 [paul]      0.9.0claws70
 
        * sync with 0.9.2cvs10
index a973fec..5bb2e07 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws70
+EXTRA_VERSION=claws71
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 8aee6db..858ecc5 100644 (file)
@@ -222,8 +222,8 @@ GNode *procmsg_get_thread_tree(GSList *mlist)
         * circular reference from a node that has already been threaded by IN-REPLY-TO
         * but is also in the subject line hash table */
        if (prefs_common.thread_by_subject) {
-               for (node = last; node && node != NULL;) {
-                       next = node->prev;
+               for (node = root->children; node && node != NULL;) {
+                       next = node->next;
                        msginfo = (MsgInfo *) node->data;
                        subject = msginfo->subject + subject_get_reply_prefix_length(msginfo->subject);
                        parent = subject_table_lookup_clean(subject_table, (gchar *) subject);