[][src]Type Definition melib::backends::notmuch::bindings::notmuch_message_add_tag

type notmuch_message_add_tag = unsafe extern "C" fn(message: *mut notmuch_message_t, tag: *const c_char) -> notmuch_status_t;

Add a tag to the given message.

Return value:

NOTMUCH_STATUS_SUCCESS: Tag successfully added to message

NOTMUCH_STATUS_NULL_POINTER: The 'tag' argument is NULL

NOTMUCH_STATUS_TAG_TOO_LONG: The length of 'tag' is too long (exceeds NOTMUCH_TAG_MAX)

NOTMUCH_STATUS_READ_ONLY_DATABASE: Database was opened in read-only mode so message cannot be modified.