bool index_storage_allow_new_keywords(struct mailbox *box);
bool index_storage_is_inconsistent(struct mailbox *box);
-int index_mailbox_keyword_is_valid(struct index_mailbox *ibox,
- const char *keyword, const char **error_r);
int index_keywords_create(struct mailbox *box, const char *const keywords[],
struct mail_keywords **keywords_r, bool skip_invalid);
void index_keywords_free(struct mail_keywords *keywords);
/* add it to index's keyword list if it's not there already */
keyword = t_strndup(hdr->full_value + keyword_start,
pos - keyword_start);
- if (index_mailbox_keyword_is_valid(&ctx->sync_ctx->mbox->ibox,
- keyword, &error)) {
+ if (mailbox_keyword_is_valid(&ctx->sync_ctx->mbox->ibox.box,
+ keyword, &error)) {
mail_index_keyword_lookup_or_create(
ctx->sync_ctx->mbox->ibox.index, keyword, &idx);
}
index_transaction_set_max_modseq,
index_keywords_create,
index_keywords_free,
+ index_keyword_is_valid,
index_storage_get_seq_range,
index_storage_get_uid_range,
index_storage_get_expunged_uids,