aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2019-10-23 06:55:03 +0200
committerDirk Van Haerenborgh <vhdirk@gmail.com>2019-10-23 06:55:03 +0200
commitedf986b7888a97ad434f08c1900d5ae4356ec44a (patch)
tree57ee903330f43cd61f6c53ab013bfc5088b638b6 /src/message.rs
parent1e4e67fde1a7c75c9a81312d71340801d0ee06d3 (diff)
downloadmail-edf986b7888a97ad434f08c1900d5ae4356ec44a.tar.gz
fix index_file and add freeze/thaw
Diffstat (limited to 'src/message.rs')
-rw-r--r--src/message.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/message.rs b/src/message.rs
index 73727f9..f5d0542 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -123,6 +123,14 @@ where
pub fn reindex<'d>(self: &Self, indexopts: IndexOpts<'d>) -> Result<()> {
unsafe { ffi::notmuch_message_reindex(self.ptr, indexopts.ptr) }.as_result()
}
+
+ pub fn freeze(self: &Self) -> Result<()> {
+ unsafe { ffi::notmuch_message_freeze(self.ptr) }.as_result()
+ }
+
+ pub fn thaw(self: &Self) -> Result<()> {
+ unsafe { ffi::notmuch_message_thaw(self.ptr) }.as_result()
+ }
}
pub trait MessageExt<'o, O>