aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreaon <eaon@mit.edu>2018-12-22 19:22:13 +0100
committereaon <eaon@mit.edu>2018-12-22 19:22:13 +0100
commit08df34cdc7574383d857f9ee9d76f4f3c4ae02b8 (patch)
treeece4c1af83a90dfe72cbbf3e7631a6f5ade32407
parentabc1c7835a904332654d8adce4b8a13b7a939775 (diff)
downloadmail-08df34cdc7574383d857f9ee9d76f4f3c4ae02b8.tar.gz
Add Maildir flag / tag syncing
-rw-r--r--src/message.rs8
1 files changed, 8 insertions, 0 deletions
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>