[dovecot-cvs] dovecot/src/imap imap-fetch-body.c,1.7,1.8

cras at dovecot.org cras at dovecot.org
Sat Sep 4 13:29:54 EEST 2004


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv27872

Modified Files:
	imap-fetch-body.c 
Log Message:
Don't ask for body size when fetching BODY[HEADER], so body doesn't have to
be parsed.



Index: imap-fetch-body.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-fetch-body.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- imap-fetch-body.c	28 Aug 2004 10:32:16 -0000	1.7
+++ imap-fetch-body.c	4 Sep 2004 10:29:52 -0000	1.8
@@ -308,7 +308,9 @@
 	const struct message_size *fetch_size;
 	struct message_size hdr_size, body_size;
 
-	ctx->cur_input = mail->get_stream(mail, &hdr_size, &body_size);
+	ctx->cur_input =
+		mail->get_stream(mail, &hdr_size,
+				 body->section[0] == 'H' ? NULL : &body_size);
 	if (ctx->cur_input == NULL)
 		return -1;
 



More information about the dovecot-cvs mailing list