[dovecot-cvs] dovecot/src/imap imap-fetch.c,1.18,1.19

cras at procontrol.fi cras at procontrol.fi
Wed Apr 28 21:57:16 EEST 2004


Update of /home/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv12536

Modified Files:
	imap-fetch.c 
Log Message:
BYE if trying to fetch body[] of expunged message.



Index: imap-fetch.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-fetch.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- imap-fetch.c	27 Apr 2004 20:25:52 -0000	1.18
+++ imap-fetch.c	28 Apr 2004 18:57:13 -0000	1.19
@@ -314,12 +314,14 @@
 			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) {



More information about the dovecot-cvs mailing list