From 5d1bb582ae26ba83629bfd6fe0a8d64f816acfee Mon Sep 17 00:00:00 2001 From: Dirk Van Haerenborgh Date: Fri, 15 Nov 2019 14:05:29 +0100 Subject: more tests for message --- src/ffi.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/ffi.rs') 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. -- cgit v1.2.1