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 eba3869725884aebac7673bf4ce2d1488d5ea639..4fe83162e09db2e9c86be86cb27d5a89373efde5 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 f5b67e6eee7346d700d21b8c2a5c700cbcec9475..85dfc6baab41849b20179273e231cd24ac8d72de 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 b8cbc6c6099fb77be3f7c8c13b0f470f6648c0a9..ef9b94793973cd93210463888d6d6ccdf0c4a296 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)