]> git.notmuchmail.org Git - notmuch/blobdiff - query.cc
notmuch show: Initial implementation (headers only)
[notmuch] / query.cc
index 5fac024e7a23be7f17d2d5eed4852b48445e27b4..170ab7523957de7ba317ea86b311281e4be76981 100644 (file)
--- a/query.cc
+++ b/query.cc
@@ -212,7 +212,7 @@ notmuch_query_search_threads (notmuch_query_t *query)
            thread = _notmuch_thread_create (query, query->notmuch,
                                             thread_id);
 
-           subject = _notmuch_message_get_subject (message);
+           subject = notmuch_message_get_header (message, "subject");
 
            _notmuch_thread_set_subject (thread, subject);