]> git.cworth.org Git - notmuch/blobdiff - lib/thread.cc
get_in_reply_to: Implement via the database, not by opening mail file.
[notmuch] / lib / thread.cc
index 4411d64d98da05964318b23c0d26cc9dba7e77af..e38a5b2e0abc336bd16fe03de8cb82902abd984d 100644 (file)
@@ -155,7 +155,7 @@ _resolve_thread_relationships (unused (notmuch_thread_t *thread))
     while ((node = *prev)) {
        message = node->message;
        in_reply_to = _notmuch_message_get_in_reply_to (message);
-       if (in_reply_to &&
+       if (in_reply_to && strlen (in_reply_to) &&
            g_hash_table_lookup_extended (thread->message_hash,
                                          in_reply_to, NULL,
                                          (void **) &parent))