Exemple #1
0
/**
 * Get the thread ID of 'thread'.
 *
 * The returned string belongs to 'thread' and as such, should not be
 * modified by the caller and will only be valid for as long as the
 * thread is valid, (which is until notmuch_thread_destroy or until
 * the query from which it derived is destroyed).
 */
func (self *Thread) GetThreadId() string {
	if self.thread == nil {
		return ""
	}
	id := C.notmuch_thread_get_thread_id(self.thread)
	if id == nil {
		return ""
	}
	return C.GoString(id)
}
Exemple #2
0
// ID returns the ID of the thread.
func (t *Thread) ID() string {
	return C.GoString(C.notmuch_thread_get_thread_id(t.toC()))
}