// CountMatched returns the total number of messages in the current thread that // matched the search. func (t *Thread) CountMatched() int { return int(C.notmuch_thread_get_matched_messages(t.toC())) }
/** * Get the number of messages in 'thread' that matched the search. * * This count includes only the messages in this thread that were * matched by the search from which the thread was created and were * not excluded by any exclude tags passed in with the query (see * notmuch_query_add_tag_exclude). Contrast with * notmuch_thread_get_total_messages() . */ func (self *Thread) GetMatchedMessages() int { if self.thread == nil { return 0 } return int(C.notmuch_thread_get_matched_messages(self.thread)) }