#include #include #include #include #include #include #include "camel-test.h" struct { char *header; char *values[5]; } test1[] = { { "", { "test@camel.host" } }, { "(this is a comment) ", { "test@camel.host" } }, { " (this is a comment)", { "test@camel.host" } }, { " This is total rubbish!", { "test@camel.host" } }, { "<@novell>", { "test.groupwise@bug.novell" } }, { "<@novell> ", { "test@camel.host", "test.groupwise@bug.novell" } }, { " <@novell> ", { "test@camel.host", "test.groupwise@bug.novell", "test@camel.host" } }, { "<@novell> <@novell>", { "test.groupwise@bug.novell", "test@camel.host", "test.groupwise@bug.novell" } }, }; int main (int argc, char **argv) { int i, j; camel_test_init(argc, argv); camel_test_start("references decoding"); for (i=0;iid) == 0); node = node->next; } check_msg(node == NULL, "found more references than should have"); camel_header_references_list_clear(&head); camel_test_pull(); } camel_test_end(); return 0; }