From 6d5c81d5c2c20ab595f8615415221d35dbb2434e Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Fri, 29 May 2009 23:50:53 +0200
Subject: [PATCH] Body: fixed part of the assert fail problems (Dovecot
 change).

---
 src/lib-sieve/plugins/body/ext-body-common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib-sieve/plugins/body/ext-body-common.c b/src/lib-sieve/plugins/body/ext-body-common.c
index 010881565..14f2e5115 100644
--- a/src/lib-sieve/plugins/body/ext-body-common.c
+++ b/src/lib-sieve/plugins/body/ext-body-common.c
@@ -204,7 +204,8 @@ static bool ext_body_parts_add_missing
 	/* Initialize body decoder */
 	decoder = decode_to_plain ? message_decoder_init(FALSE) : NULL;
 	
-	parser = message_parser_init_from_parts(parts, input, 0, 0);
+	parser = message_parser_init_from_parts
+		(parts, input, 0, MESSAGE_PARSER_FLAG_SKIP_BODY_BLOCK);
 	while ( (ret = message_parser_parse_next_block(parser, &block)) > 0 ) {
 		if ( block.part != prev_part ) {
 			/* Save previous body part */
-- 
GitLab