summaryrefslogtreecommitdiff
path: root/camel/tests/lib/messages.h
blob: 1f892c3cc8a52cf04b6f9bc3198a6882f18bd753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include <camel/camel-mime-message.h>

/* how many ways to set the content contents */
#define SET_CONTENT_WAYS (5)

/* messages.c */
CamelMimeMessage *test_message_create_simple(void);
void test_message_set_content_simple(CamelMimePart *part, int how, const char *type, const char *text, int len);
int test_message_write_file(CamelMimeMessage *msg, const char *name);
CamelMimeMessage *test_message_read_file(const char *name);
int test_message_compare_content(CamelDataWrapper *dw, const char *text, int len);
int test_message_compare (CamelMimeMessage *msg);

void test_message_dump_structure(CamelMimeMessage *m);