Ejemplo n.º 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))
}
Ejemplo n.º 2
0
Archivo: query.go Proyecto: gmuch/gmuch
// CountMessages returns the number of messages for the current query.
func (q *Query) CountMessages() int {
	return int(C.notmuch_query_count_messages(q.toC()))
}