# HG changeset patch # User Timo Sirainen # Date 1272633873 -10800 # Node ID 34c8cdc26dd93974490039c796e4cedf24921970 # Parent 7c447e8c24fefc98a3838e700a99098d4ac68706 imap: If FETCH notices cached message size is wrong, mark cache corrupted (second such check). 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; }