]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
A few more fixes to previous mailbox_keyword_is_valid() commit.
authorTimo Sirainen <tss@iki.fi>
Sun, 20 Jul 2008 23:50:54 +0000 (02:50 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 20 Jul 2008 23:50:54 +0000 (02:50 +0300)
--HG--
branch : HEAD

src/lib-storage/index/index-storage.h
src/lib-storage/index/mbox/mbox-sync-parse.c
src/plugins/virtual/virtual-storage.c

index 8f9fd8f5686036467ce379d195a11a5434ae9a94..e7335efa8ce058c8521004b5377458b03839a809 100644 (file)
@@ -111,8 +111,6 @@ bool index_storage_is_readonly(struct mailbox *box);
 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);
index f3e7758b05fb18d69e1b87798875164343c6ea68..fd05b45c399dc9b8c80c85fda4424af86185ef76 100644 (file)
@@ -134,8 +134,8 @@ parse_imap_keywords_list(struct mbox_sync_mail_context *ctx,
                /* 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 590e56b8bf66460738d6db8106faf2c002d37471..d6cb1dad87bcbeda1bc1652b5f5468d025729f85 100644 (file)
@@ -525,6 +525,7 @@ struct mailbox virtual_mailbox = {
                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,