0.9.4claws28
authorChristoph Hohmann <reboot@gmx.ch>
Sun, 17 Aug 2003 12:56:36 +0000 (12:56 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Sun, 17 Aug 2003 12:56:36 +0000 (12:56 +0000)
* src/procmsg.c
        no subject threading when the subject has no reply prefix

ChangeLog.claws
configure.ac
src/procmsg.c

index eba3869..4fe8316 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-17 [christoph] 0.9.4claws28
+
+       * src/procmsg.c
+               no subject threading when the subject has no reply prefix
+
 2003-08-16 [christoph] 0.9.4claws27
 
        * src/mainwindow.c
index f5b67e6..85dfc6b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=27
+EXTRA_VERSION=28
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index b8cbc6c..ef9b947 100644 (file)
@@ -172,13 +172,17 @@ static GNode *subject_relation_lookup(GRelation *relation, MsgInfo *msginfo)
        gchar *subject;
        GTuples *tuples;
        GNode *node = NULL;
+       gint prefix_length;
     
        g_return_val_if_fail(relation != NULL, NULL);
 
        subject = msginfo->subject;
        if (subject == NULL)
                return NULL;
-       subject += subject_get_prefix_length(subject);
+       prefix_length = subject_get_prefix_length(subject);
+       if (prefix_length <= 0)
+               return NULL;
+       subject += prefix_length;
        
        tuples = g_relation_select(relation, subject, 0);
        if (tuples == NULL)