X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fthread-fp.cc;h=97a65211992654b629269a74bdde0d6bbf82504f;hp=75339ffa79210ebca5192547e16bbcea6179faf8;hb=5fbb2c7929196033b6787ab40f7d94ec89bfbbba;hpb=5ad39ebf75eb85263e4b64f21e07ec02194f9573 diff --git a/lib/thread-fp.cc b/lib/thread-fp.cc index 75339ffa..97a65211 100644 --- a/lib/thread-fp.cc +++ b/lib/thread-fp.cc @@ -24,8 +24,6 @@ #include "thread-fp.h" #include -#if HAVE_XAPIAN_FIELD_PROCESSOR - Xapian::Query ThreadFieldProcessor::operator() (const std::string & str) { @@ -52,7 +50,7 @@ ThreadFieldProcessor::operator() (const std::string & str) std::string term = thread_prefix; notmuch_message_t *message; message = notmuch_messages_get (messages); - term += notmuch_message_get_thread_id (message); + term += _notmuch_message_get_thread_id_only (message); terms.insert (term); } return Xapian::Query (Xapian::Query::OP_OR, terms.begin (), terms.end ()); @@ -64,4 +62,3 @@ ThreadFieldProcessor::operator() (const std::string & str) } } -#endif