Lines Matching refs:keywords
9 #include "maildir-keywords.h"
29 ARRAY_TYPE(keyword_indexes) keywords, idx_keywords;
122 /* get the current flags and keywords */
124 fname, &ctx->flags, &ctx->keywords);
129 &flags8, &ctx->keywords, &sync_type);
134 ctx->flags, &ctx->keywords);
239 maildir_keywords_sync_init(mbox->keywords, _box->index);
378 if (index_keyword_array_cmp(&ctx->keywords, &ctx->idx_keywords)) {
383 /* sort the keywords */
385 array_sort(&ctx->keywords, uint_cmp);
387 /* drop keywords that are in index-only. we don't want to touch them. */
399 /* no index-only keywords found, so something changed.
402 &ctx->keywords);
408 /* check again if non-index-only keywords changed */
409 if (index_keyword_array_cmp(&ctx->keywords, &ctx->idx_keywords))
412 /* we can't reset all the keywords or we'd drop indexonly keywords too.
413 so first remove the unwanted keywords and then add back the wanted
415 from old and new keywords. */
416 new_indexes = array_get(&ctx->keywords, &new_count);
420 array_delete(&ctx->keywords, j, 1);
423 new_indexes = array_get(&ctx->keywords, &new_count);
438 if (array_count(&ctx->keywords) > 0) {
440 &ctx->keywords);
497 i_array_init(&ctx->keywords, MAILDIR_MAX_KEYWORDS);
502 &ctx->flags, &ctx->keywords);
538 if (array_count(&ctx->keywords) > 0) {
542 mbox->box.index, &ctx->keywords);
681 array_free(&ctx->keywords);