From c9f1db9bd04c54e488d2c3670c9baed990aa205f Mon Sep 17 00:00:00 2001 From: Matthew Loper Date: Tue, 8 Feb 2000 23:26:31 +0000 Subject: + * tests/test-formatter.c (convert_to_html_and_print): Fixed call + to 'camel_formatter_mime_message_to_html' to contain correct + params. svn path=/trunk/; revision=1697 --- tests/test-formatter.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tests/test-formatter.c') diff --git a/tests/test-formatter.c b/tests/test-formatter.c index 32148be11b..b3e0ca76a6 100644 --- a/tests/test-formatter.c +++ b/tests/test-formatter.c @@ -14,11 +14,16 @@ static void convert_to_html_and_print (CamelMimeMessage *msg) { CamelFormatter* cmf = camel_formatter_new(); - CamelStream* stream = camel_stream_mem_new (CAMEL_STREAM_FS_WRITE); + CamelStream* header_stream = + camel_stream_mem_new (CAMEL_STREAM_FS_WRITE); + CamelStream* body_stream = + camel_stream_mem_new (CAMEL_STREAM_FS_WRITE); camel_formatter_mime_message_to_html ( - cmf, msg, stream); - g_print ("Parsed message follows\n----------------------\n%s", - (CAMEL_STREAM_MEM(stream))->buffer->data); + cmf, msg, header_stream, body_stream); + g_print ("Header follows\n----------------------\n%s\n", + (CAMEL_STREAM_MEM(header_stream))->buffer->data); + g_print ("Body follows\n----------------------\n%s\n", + (CAMEL_STREAM_MEM(body_stream))->buffer->data); } static void -- cgit v1.2.3