diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-11-15 14:05:29 +0100 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2019-11-15 14:05:29 +0100 |
| commit | 5d1bb582ae26ba83629bfd6fe0a8d64f816acfee (patch) | |
| tree | 90e4ac7c59f27fc9c6e3aa65c723141f1b2298ac /src/ffi.rs | |
| parent | cc6896cca0839f5d97c5daee8ffba824c3c0d229 (diff) | |
| download | mail-5d1bb582ae26ba83629bfd6fe0a8d64f816acfee.tar.gz | |
more tests for message
Diffstat (limited to 'src/ffi.rs')
| -rw-r--r-- | src/ffi.rs | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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. |
