diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test2.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test2.c b/tests/test2.c index 4fa3bc59f1..dbb2b29ad0 100644 --- a/tests/test2.c +++ b/tests/test2.c @@ -29,6 +29,7 @@ void main (int argc, char**argv) { FILE *input_file; + FILE *output_file; GHashTable *header_table; CamelMimeMessage *message; @@ -36,7 +37,7 @@ main (int argc, char**argv) gtk_init (&argc, &argv); - camel_debug_level = WARNING; + camel_debug_level = FULL_DEBUG; message = camel_mime_message_new_with_session( (CamelSession *)NULL); input_file = fopen ("mail.test", "r"); @@ -51,6 +52,15 @@ main (int argc, char**argv) else printf("header is empty, no header line present\n"); fclose (input_file); + + output_file = fopen ("mail2.test", "w"); + if (!output_file) { + perror("could not open output file"); + exit(2); + } + camel_data_wrapper_write_to_file (CAMEL_DATA_WRAPPER (message), output_file); + fclose (output_file); + } |