dovecot-1.2: imap: If FETCH notices cached message size is wrong...

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 30 16:24:54 EEST 2010


details:   http://hg.dovecot.org/dovecot-1.2/rev/34c8cdc26dd9
changeset: 9566:34c8cdc26dd9
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 30 16:24:33 2010 +0300
description:
imap: If FETCH notices cached message size is wrong, mark cache corrupted (second such check).

diffstat:

 src/imap/imap-fetch-body.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 7c447e8c24fe -r 34c8cdc26dd9 src/imap/imap-fetch-body.c
--- a/src/imap/imap-fetch-body.c	Thu Apr 29 20:43:16 2010 +0300
+++ b/src/imap/imap-fetch-body.c	Fri Apr 30 16:24:33 2010 +0300
@@ -274,6 +274,8 @@
 				"%"PRIuUOFF_T" vs %"PRIuUOFF_T,
 				ctx->cur_name, mailbox_get_name(ctx->mail->box),
 				ctx->mail->uid, ctx->cur_offset, ctx->cur_size);
+			mail_set_cache_corrupted(ctx->mail,
+						 ctx->cur_size_field);
 			client_disconnect(ctx->client, "FETCH failed");
 			return -1;
 		}


More information about the dovecot-cvs mailing list