aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffi.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2019-11-15 14:05:29 +0100
committerDirk Van Haerenborgh <vhdirk@gmail.com>2019-11-15 14:05:29 +0100
commit5d1bb582ae26ba83629bfd6fe0a8d64f816acfee (patch)
tree90e4ac7c59f27fc9c6e3aa65c723141f1b2298ac /src/ffi.rs
parentcc6896cca0839f5d97c5daee8ffba824c3c0d229 (diff)
downloadmail-5d1bb582ae26ba83629bfd6fe0a8d64f816acfee.tar.gz
more tests for message
Diffstat (limited to 'src/ffi.rs')
-rw-r--r--src/ffi.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index 5dc93aa..285aeba 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -1445,6 +1445,23 @@ extern "C" {
key: *const c_char,
) -> notmuch_status_t;
+ /// Remove all (prefix*,value) pairs from the given message
+ ///
+ /// @param[in,out] message message to operate on.
+ /// @param[in] prefix delete properties with keys that start with prefix.
+ /// If NULL, delete all properties
+ /// @returns
+ /// - NOTMUCH_STATUS_READ_ONLY_DATABASE: Database was opened in
+ /// read-only mode so message cannot be modified.
+ /// - NOTMUCH_STATUS_SUCCESS: No error occurred.
+ ///
+ /// @since libnotmuch 5.1 (notmuch 0.26)
+ ///
+ pub fn notmuch_message_remove_all_properties_with_prefix(
+ message: *mut notmuch_message_t,
+ prefix: *const c_char,
+ ) -> notmuch_status_t;
+
/// Get the properties for *message*, returning a
/// `notmuch_message_properties_t` object which can be used to iterate over
/// all properties.