[dovecot-cvs] dovecot/src/lib-mail message-parser.c,1.74,1.75

tss at dovecot.org tss at dovecot.org
Sun Oct 15 13:13:10 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv15677

Modified Files:
	message-parser.c 
Log Message:
message_parser_parse_next_block() returned body part wrong for first header
in MIME blocks, which caused problems.



Index: message-parser.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-parser.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- message-parser.c	9 May 2006 11:55:04 -0000	1.74
+++ message-parser.c	15 Oct 2006 12:13:08 -0000	1.75
@@ -537,8 +537,6 @@
 	int ret;
 	bool eof = FALSE;
 
-	block_r->part = ctx->part;
-
 	while ((ret = ctx->parse_next_block(ctx, block_r)) == 0) {
 		if ((ret = i_stream_read(ctx->input)) == 0)
 			break;
@@ -551,8 +549,8 @@
 		} else {
 			eof = FALSE;
 		}
-		block_r->part = ctx->part;
 	}
+	block_r->part = ctx->part;
 
 	if (ret < 0) {
 		while (ctx->part->parent != NULL) {



More information about the dovecot-cvs mailing list