diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-10-18 16:09:48 +0200 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-10-18 16:10:32 +0200 |
| commit | 1e4e67fde1a7c75c9a81312d71340801d0ee06d3 (patch) | |
| tree | fdcdc3ab3429f1c9d57574cd8affdcc23a00ea9b /src/message.rs | |
| parent | cf3b912a94dd18cb3f5af664e11a0e2391d16b0b (diff) | |
| download | mail-1e4e67fde1a7c75c9a81312d71340801d0ee06d3.tar.gz | |
message: implement reindex
Diffstat (limited to 'src/message.rs')
| -rw-r--r-- | src/message.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/message.rs b/src/message.rs index 2172713..73727f9 100644 --- a/src/message.rs +++ b/src/message.rs @@ -11,6 +11,7 @@ use FilenamesOwner; use Messages; use Tags; use TagsOwner; +use IndexOpts; pub trait MessageOwner: Send + Sync {} @@ -118,6 +119,10 @@ where pub fn maildir_flags_to_tags(self: &Self) -> Result<()> { unsafe { ffi::notmuch_message_maildir_flags_to_tags(self.ptr) }.as_result() } + + pub fn reindex<'d>(self: &Self, indexopts: IndexOpts<'d>) -> Result<()> { + unsafe { ffi::notmuch_message_reindex(self.ptr, indexopts.ptr) }.as_result() + } } pub trait MessageExt<'o, O> |
