X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=89afb6d9b0b1ff14b20e5e1bdbf9ed1cd75b1895;hb=fc12f6f07b5ee6cbcf54a30116fe0a37f8f557cd;hp=669e01b120b3cbbd797389f5f7f2e63e116e5e72;hpb=a18bbf7f155369f251b0513788eade23be3555d5;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index 669e01b1..89afb6d9 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1823,6 +1823,22 @@ notmuch_message_remove_property (notmuch_message_t *message, const char *key, co notmuch_status_t notmuch_message_remove_all_properties (notmuch_message_t *message, const char *key); +/** + * 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 occured. + * + * @since libnotmuch 5.1 (notmuch 0.26) + */ +notmuch_status_t +notmuch_message_remove_all_properties_with_prefix (notmuch_message_t *message, const char *prefix); + /** * Opaque message property iterator */