Introduce _notmuch_message_has_term()