X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=query.cc;h=170ab7523957de7ba317ea86b311281e4be76981;hb=90a0ef4ac4a023f11f82b037c635b4b22762b12f;hp=5fac024e7a23be7f17d2d5eed4852b48445e27b4;hpb=c12823648ee84b4748e0e9f0cd97f7264911b589;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);