test-istream-header-filter.c revision 4334b9b032298defd4d3906f5357698ff016ead0
/* Copyright (c) 2007-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "message-header-parser.h"
#include "istream-header-filter.h"
#include "test-common.h"
{
/* drop first header */
}
}
static void test_istream_filter(void)
{
const char *input = "From: foo\nFrom: abc\nTo: bar\n\nhello world\n";
const char *output = "From: abc\n\nhello world\n";
const unsigned char *data;
test_begin("i_stream_create_header_filter()");
exclude_headers, 1,
exclude_headers, 1,
for (i = 1; i < input_len; i++) {
}
i_stream_seek(filter, 0);
test_end();
}
int main(void)
{
static void (*test_functions[])(void) = {
};
return test_run(test_functions);
}