Beispiel #1
0
/* Return an estimate of the number of messages matching a search
 *
 * This function performs a search and returns Xapian's best
 * guess as to number of matching messages.
 *
 * If a Xapian exception occurs, this function may return 0 (after
 * printing a message).
 */
func (self *Query) CountMessages() uint {
	return uint(C.notmuch_query_count_messages(self.query))
}
Beispiel #2
0
// CountMessages returns the number of messages for the current query.
func (q *Query) CountMessages() int {
	return int(C.notmuch_query_count_messages(q.toC()))
}