]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
BYE if trying to fetch body[] of expunged message.
authorTimo Sirainen <tss@iki.fi>
Wed, 28 Apr 2004 18:57:13 +0000 (21:57 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 28 Apr 2004 18:57:13 +0000 (21:57 +0300)
--HG--
branch : HEAD

src/imap/imap-fetch.c

index 4efacc8daa87b465e362a8f65a7ea8f98e2ee2e6..4da3f6d3bf14daaeae0081dc4a33894a2b9d04a0 100644 (file)
@@ -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) {