On Tue, 2009-09-01 at 12:19 +0200, Maciej Uhlig wrote:
> 2009-09-01T02:40:57+02:00 prac/prac dovecot: [ID 583609 mail.crit] 
> deliver(i...@domain): Panic: file ext-body-common.c: line 149: assertion 
> failed: (buf->used - 1 == part->body_size.physical_size)

Can you try if the attached patch fixes this?

diff -r a8c962e603be src/lib-sieve/plugins/body/ext-body-common.c
--- a/src/lib-sieve/plugins/body/ext-body-common.c	Mon Aug 31 01:18:05 2009 +0200
+++ b/src/lib-sieve/plugins/body/ext-body-common.c	Wed Sep 02 10:54:12 2009 -0400
@@ -203,7 +203,7 @@
 	decoder = decode_to_plain ? message_decoder_init(FALSE) : NULL;
 	
 	parser = message_parser_init
-		(ctx->pool, input, 0, MESSAGE_PARSER_FLAG_SKIP_BODY_BLOCK);
+		(ctx->pool, input, 0, 0);
 	while ( (ret = message_parser_parse_next_block(parser, &block)) > 0 ) {
 		if ( block.part != prev_part ) {
 			/* Save previous body part */

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to