Esempio n. 1
0
// Count returns the total number of messages in the current thread.
func (t *Thread) Count() int {
	return int(C.notmuch_thread_get_total_messages(t.toC()))
}
Esempio n. 2
0
/**
 * Get the total number of messages in 'thread'.
 *
 * This count consists of all messages in the database belonging to
 * this thread. Contrast with notmuch_thread_get_matched_messages() .
 */
func (self *Thread) GetTotalMessages() int {
	if self.thread == nil {
		return 0
	}
	return int(C.notmuch_thread_get_total_messages(self.thread))
}