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

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


details:   http://hg.dovecot.org/dovecot-2.0/rev/be74fa9bfcc9
changeset: 11241:be74fa9bfcc9
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 529fee1603e5 -r be74fa9bfcc9 src/imap/imap-fetch-body.c
--- a/src/imap/imap-fetch-body.c	Fri Apr 30 16:17:52 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_vname(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