Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8043:b40e772d2e2c HEAD
A few more fixes to previous mailbox_keyword_is_valid() commit.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 21 Jul 2008 02:50:54 +0300 |
parents | 0e7a9547be83 |
children | 56c0494d8c49 |
files | src/lib-storage/index/index-storage.h src/lib-storage/index/mbox/mbox-sync-parse.c src/plugins/virtual/virtual-storage.c |
diffstat | 3 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-storage.h Mon Jul 21 02:48:51 2008 +0300 +++ b/src/lib-storage/index/index-storage.h Mon Jul 21 02:50:54 2008 +0300 @@ -111,8 +111,6 @@ 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);
--- a/src/lib-storage/index/mbox/mbox-sync-parse.c Mon Jul 21 02:48:51 2008 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync-parse.c Mon Jul 21 02:50:54 2008 +0300 @@ -134,8 +134,8 @@ /* 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); }
--- a/src/plugins/virtual/virtual-storage.c Mon Jul 21 02:48:51 2008 +0300 +++ b/src/plugins/virtual/virtual-storage.c Mon Jul 21 02:50:54 2008 +0300 @@ -525,6 +525,7 @@ 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,