#include "lib.h"
#include "buffer.h"
#include "istream.h"
-#include "istream-nonuls.h"
#include "str.h"
#include "message-size.h"
#include "message-header-parser.h"
struct message_header_parser_ctx *ctx;
ctx = i_new(struct message_header_parser_ctx, 1);
- if ((flags & MESSAGE_HEADER_REPLACE_NULS_WITH_0x80) != 0)
- ctx->input = i_stream_create_nonuls(input, 0x80);
- else {
- ctx->input = input;
- i_stream_ref(input);
- }
+ ctx->input = input;
ctx->hdr_size = hdr_size;
ctx->name = str_new(default_pool, 128);
ctx->flags = flags;
ctx->value_buf = buffer_create_dynamic(default_pool, 4096);
+ i_stream_ref(input);
if (hdr_size != NULL)
i_zero(hdr_size);
/* Don't add CRs to full_value even if input had them */
MESSAGE_HEADER_PARSER_FLAG_DROP_CR = 0x02,
/* Convert [CR+]LF+LWSP to a space character in full_value */
- MESSAGE_HEADER_PARSER_FLAG_CLEAN_ONELINE = 0x04,
- /* Replace 0x0 symbols with 0x80 */
- MESSAGE_HEADER_REPLACE_NULS_WITH_0x80 = 0x08,
+ MESSAGE_HEADER_PARSER_FLAG_CLEAN_ONELINE = 0x04
};
struct message_header_line {