]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: If FETCH notices cached message size is wrong, mark cache corrupted (second...
authorTimo Sirainen <tss@iki.fi>
Fri, 30 Apr 2010 13:24:33 +0000 (16:24 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 30 Apr 2010 13:24:33 +0000 (16:24 +0300)
--HG--
branch : HEAD

src/imap/imap-fetch-body.c

index 7c158bb172ed3185219fa911a77db4ee631bcbd4..94ba0b842045c7a2243f3b5b87cd0f04f1a8f717 100644 (file)
@@ -274,6 +274,8 @@ static int fetch_stream_send_direct(struct imap_fetch_context *ctx)
                                "%"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;
                }