[−][src]Type Definition melib::backends::notmuch::bindings::notmuch_query_count_threads
type notmuch_query_count_threads = unsafe extern "C" fn(query: *mut notmuch_query_t, count: *mut c_uint) -> notmuch_status_t;
Return the number of threads matching a search.
This function performs a search and returns the number of unique thread IDs in the matching messages. This is the same as number of threads matching a search.
Note that this is a significantly heavier operation than notmuch_query_count_messages{_st}().
@returns
NOTMUCH_STATUS_OUT_OF_MEMORY: Memory allocation failed. The value of *count is not defined
NOTMUCH_STATUS_SUCCESS: query completed successfully.
NOTMUCH_STATUS_XAPIAN_EXCEPTION: a Xapian exception occurred. The value of *count is not defined.
@since libnotmuch 5 (notmuch 0.25)