From 08df34cdc7574383d857f9ee9d76f4f3c4ae02b8 Mon Sep 17 00:00:00 2001 From: eaon Date: Sat, 22 Dec 2018 13:22:13 -0500 Subject: Add Maildir flag / tag syncing --- src/message.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/message.rs') diff --git a/src/message.rs b/src/message.rs index 226d3b8..0013497 100644 --- a/src/message.rs +++ b/src/message.rs @@ -110,6 +110,14 @@ where pub fn remove_all_tags(self: &Self) -> Result<()> { unsafe { ffi::notmuch_message_remove_all_tags(self.ptr) }.as_result() } + + pub fn tags_to_maildir_flags(self: &Self) -> Result<()> { + unsafe { ffi::notmuch_message_tags_to_maildir_flags(self.ptr) }.as_result() + } + + pub fn maildir_flags_to_tags(self: &Self) -> Result<()> { + unsafe { ffi::notmuch_message_maildir_flags_to_tags(self.ptr) }.as_result() + } } pub trait MessageExt<'o, O> -- cgit v1.2.1