diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-03-23 11:56:52 +0100 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-03-23 11:56:52 +0100 |
| commit | 7719c3b31f67eded7af6cd63d99b56c0f74c97cd (patch) | |
| tree | 9baa207493944912204e4452ccad85c8e6170d13 /src/messages.rs | |
| parent | c7f1127b960d1208b12a1abbd33885826fb6dd0c (diff) | |
| download | mail-7719c3b31f67eded7af6cd63d99b56c0f74c97cd.tar.gz | |
wip
Diffstat (limited to 'src/messages.rs')
| -rw-r--r-- | src/messages.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/messages.rs b/src/messages.rs index bb86866..8466387 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -12,6 +12,7 @@ use utils::{ }; use Query; use Message; +use Tags; #[derive(Debug)] pub struct Messages<'q, 'd:'q>( @@ -27,6 +28,16 @@ impl<'q, 'd> NewFromPtr<*mut ffi::notmuch_messages_t> for Messages<'q, 'd> { } } +impl<'q, 'd> Messages<'q, 'd>{ + + pub fn collect_tags(self: &Self) -> Tags{ + Tags::new(unsafe { + ffi::notmuch_messages_collect_tags(self.0) + }) + } + +} + impl<'q, 'd> ops::Drop for Messages<'q, 'd> { fn drop(&mut self) { unsafe { |
