dovecot-2.1: maildir: Fixed handling over 26 keywords in a mailbox.
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 15 15:27:10 EEST 2013
details: http://hg.dovecot.org/dovecot-2.1/rev/7389ff729d2e
changeset: 14967:7389ff729d2e
user: Timo Sirainen <tss at iki.fi>
date: Wed May 15 15:26:47 2013 +0300
description:
maildir: Fixed handling over 26 keywords in a mailbox.
diffstat:
src/lib-storage/index/maildir/maildir-sync-index.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (19 lines):
diff -r 30c257f2504a -r 7389ff729d2e src/lib-storage/index/maildir/maildir-sync-index.c
--- a/src/lib-storage/index/maildir/maildir-sync-index.c Wed May 15 14:28:04 2013 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c Wed May 15 15:26:47 2013 +0300
@@ -392,10 +392,11 @@
old_indexes = array_get(&ctx->idx_keywords, &old_count);
have_indexonly_keywords = FALSE;
for (i = old_count; i > 0; i--) {
- if (old_indexes[i-1] < MAILDIR_MAX_KEYWORDS)
- break;
- have_indexonly_keywords = TRUE;
- array_delete(&ctx->idx_keywords, i-1, 1);
+ if (maildir_keywords_idx_char(ctx->keywords_sync_ctx,
+ old_indexes[i-1]) == '\0') {
+ have_indexonly_keywords = TRUE;
+ array_delete(&ctx->idx_keywords, i-1, 1);
+ }
}
if (!have_indexonly_keywords) {
More information about the dovecot-cvs
mailing list