aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2019-11-14 19:22:38 +0100
committerDirk Van Haerenborgh <vhdirk@gmail.com>2019-11-14 19:22:38 +0100
commitcc6896cca0839f5d97c5daee8ffba824c3c0d229 (patch)
tree991e348c590f3da671a1acc9ebd4f57cd497f974 /src/thread.rs
parent1e060f14736922bfbd065a2ac611c64b9e2f5104 (diff)
downloadmail-cc6896cca0839f5d97c5daee8ffba824c3c0d229.tar.gz
add more tests
Diffstat (limited to 'src/thread.rs')
-rw-r--r--src/thread.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/thread.rs b/src/thread.rs
index 34cebd3..1ebcc24 100644
--- a/src/thread.rs
+++ b/src/thread.rs
@@ -61,6 +61,10 @@ where
<Self as ThreadExt<'d, 'q>>::toplevel_messages(self)
}
+ pub fn matched_messages(self: &Self) -> i32 {
+ unsafe { ffi::notmuch_thread_get_matched_messages(self.ptr) }
+ }
+
/// Get a `Messages` iterator for all messages in 'thread' in
/// oldest-first order.
pub fn messages(self: &Self) -> Messages<'_, Self> {