dovecot-2.2: maildir: Fixed handling over 26 keywords in a mailbox.
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 15 15:27:50 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/2c770b01d21f
changeset: 16362:2c770b01d21f
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 38ca85ccd5af -r 2c770b01d21f src/lib-storage/index/maildir/maildir-sync-index.c
--- a/src/lib-storage/index/maildir/maildir-sync-index.c Wed May 15 15:06:24 2013 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c Wed May 15 15:26:47 2013 +0300
@@ -390,10 +390,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