da_notmuch_query_count_threads_st

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

alias da_notmuch_query_count_threads_st = notmuch_status_t function(
notmuch_query_t* query
,
uint* count
)

Detailed Description

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 occured. The value of *count is not defined.

@since libnotmuch 4.3 (notmuch 0.21)

Meta