X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=query.cc;fp=query.cc;h=170ab7523957de7ba317ea86b311281e4be76981;hb=bf78a89196b251c2465f6cefa8198f22c87ff23d;hp=5fac024e7a23be7f17d2d5eed4852b48445e27b4;hpb=b39ebca8c97fb19c52e46a2b9565c2d9fa0707d0;p=notmuch diff --git a/query.cc b/query.cc index 5fac024e..170ab752 100644 --- 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);