]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
message_parser_init_from_parts(): Assert that MESSAGE_PARSER_FLAG_SKIP_BODY_BLOCK...
authorTimo Sirainen <tss@iki.fi>
Tue, 26 May 2009 19:21:15 +0000 (15:21 -0400)
committerTimo Sirainen <tss@iki.fi>
Tue, 26 May 2009 19:21:15 +0000 (15:21 -0400)
--HG--
branch : HEAD

src/lib-mail/message-parser.c

index d4f5d049da8f3b193edec293506503d4dc06f294..61c2ee43e2de4253edef43b58d8c982f9bdd6517 100644 (file)
@@ -737,6 +737,8 @@ message_parser_init_from_parts(struct message_part *parts,
 {
        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;