예제 #1
0
파일: thread.go 프로젝트: gmuch/gmuch
// 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()))
}
예제 #2
0
파일: notmuch.go 프로젝트: notmuch/notmuch
/**
 * 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))
}