/* First, do we delete an existing tag? */
for (tags = notmuch_message_get_tags (message);
/* First, do we delete an existing tag? */
for (tags = notmuch_message_get_tags (message);
notmuch_tags_move_to_next (tags)) {
const char *cur_tag = notmuch_tags_get (tags);
if (strcmp (cur_tag, list->ops[i].tag) == 0) {
notmuch_tags_move_to_next (tags)) {
const char *cur_tag = notmuch_tags_get (tags);
if (strcmp (cur_tag, list->ops[i].tag) == 0) {
{
/* Make room if current array is full. This should be a fairly
* rare case, considering the initial array size.
{
/* Make room if current array is full. This should be a fairly
* rare case, considering the initial array size.
tag_op_list_isremove (const tag_op_list_t *list, size_t i)
{
assert (i < list->count);
tag_op_list_isremove (const tag_op_list_t *list, size_t i)
{
assert (i < list->count);