Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7877:2e75e5a42f0e HEAD
Maildir saving: Fixed a potential crash when saving a mail with keywords.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 17 Jun 2008 12:36:15 +0300 |
parents | 94fe6f7747da |
children | 1da72e385de4 |
files | src/lib-storage/index/maildir/maildir-save.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-save.c Tue Jun 17 10:52:18 2008 +0300 +++ b/src/lib-storage/index/maildir/maildir-save.c Tue Jun 17 12:36:15 2008 +0300 @@ -608,15 +608,14 @@ if (maildir_sync_index_begin(mbox, NULL, &ctx->sync_ctx) < 0) return -1; + ctx->keywords_sync_ctx = + maildir_sync_get_keywords_sync_ctx(ctx->sync_ctx); if (maildir_sync_header_refresh(mbox) < 0) return -1; if (maildir_uidlist_refresh_fast_init(mbox->uidlist) < 0) return 1; - ctx->keywords_sync_ctx = - maildir_sync_get_keywords_sync_ctx(ctx->sync_ctx); - /* now that uidlist is locked, make sure all the existing mails have been added to index. we don't really look into the maildir, just add all the new mails listed in