dovecot-2.0: message_parser_init_from_parts(): Assert that MESSA...
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 26 22:23:41 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/59bad3eabb93
changeset: 9387:59bad3eabb93
user: Timo Sirainen <tss at iki.fi>
date: Tue May 26 15:21:15 2009 -0400
description:
message_parser_init_from_parts(): Assert that MESSAGE_PARSER_FLAG_SKIP_BODY_BLOCK is set.
diffstat:
1 file changed, 2 insertions(+)
src/lib-mail/message-parser.c | 2 ++
diffs (12 lines):
diff -r aff3abbcb8a6 -r 59bad3eabb93 src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c Tue May 26 14:55:40 2009 -0400
+++ b/src/lib-mail/message-parser.c Tue May 26 15:21:15 2009 -0400
@@ -737,6 +737,8 @@ message_parser_init_from_parts(struct me
{
struct message_parser_ctx *ctx;
+ i_assert((flags & MESSAGE_PARSER_FLAG_SKIP_BODY_BLOCK) != 0);
+
ctx = message_parser_init(NULL, input, hdr_flags, flags);
ctx->parts = ctx->part = parts;
ctx->parse_next_block = preparsed_parse_next_header_init;
More information about the dovecot-cvs
mailing list