changeset 9566:34c8cdc26dd9 HEAD

imap: If FETCH notices cached message size is wrong, mark cache corrupted (second such check).
author Timo Sirainen <tss@iki.fi>
date Fri, 30 Apr 2010 16:24:33 +0300
parents 7c447e8c24fe
children 2cdfcca171d8
files src/imap/imap-fetch-body.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}