From: Timo Sirainen Date: Wed, 28 Apr 2004 18:57:13 +0000 (+0300) Subject: BYE if trying to fetch body[] of expunged message. X-Git-Tag: 1.1.alpha1~4180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d29cffe84aa9742353c40516a09e18385ab341;p=thirdparty%2Fdovecot%2Fcore.git BYE if trying to fetch body[] of expunged message. --HG-- branch : HEAD --- diff --git a/src/imap/imap-fetch.c b/src/imap/imap-fetch.c index 4efacc8daa..4da3f6d3bf 100644 --- a/src/imap/imap-fetch.c +++ b/src/imap/imap-fetch.c @@ -314,12 +314,14 @@ static int fetch_mail(struct imap_fetch_context *ctx, struct mail *mail) if (!fetch_send_rfc822_text(ctx, mail)) break; + failed = FALSE; + for (body = ctx->bodies; body != NULL; body = body->next) { - if (!imap_fetch_body_section(ctx, body, mail)) + if (!imap_fetch_body_section(ctx, body, mail)) { + failed = TRUE; break; + } } - - failed = FALSE; } while (0); if (data_written) {