test-message-header-decode.c revision b014857be9961acf2d37ef7b76d941b20cc8c2d1
/* Copyright (c) 2009 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "str.h"
#include "charset-utf8.h"
#include "message-header-decode.h"
#include "test-common.h"
enum charset_result
{
return CHARSET_RET_OK;
}
static void test_message_header_decode(void)
{
static const char *data[] = {
"a =?utf-8?q?=c3=a4?= b", "a ä b",
"a =?utf-8?q?=c3=a4?= b", "a ä b",
"a =?utf-8?q?=c3=a4?=\t\t\r\n =?utf-8?q?=c3=a4?= b", "a ää b",
"a =?utf-8?q?=c3=a4?= x =?utf-8?q?=c3=a4?= b", "a ä x ä b",
"a =?utf-8?b?w6TDpCDDpA==?= b", "a ää ä b",
"=?utf-8?b?w6Qgw6Q=?=", "ä ä",
};
unsigned int i;
test_begin("message header decode");
str_truncate(dest, 0);
}
test_end();
}
int main(void)
{
static void (*test_functions[])(void) = {
};
return test_run(test_functions);
}