aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-02-09 07:26:31 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-02-09 07:26:31 +0800
commitc9f1db9bd04c54e488d2c3670c9baed990aa205f (patch)
tree122961147ebd07339ede11f14deffb0d103d3ae5
parent3e5f29f65034bd84afa560c58000ac0ba1695536 (diff)
downloadgsoc2013-evolution-c9f1db9bd04c54e488d2c3670c9baed990aa205f.tar.gz
gsoc2013-evolution-c9f1db9bd04c54e488d2c3670c9baed990aa205f.tar.zst
gsoc2013-evolution-c9f1db9bd04c54e488d2c3670c9baed990aa205f.zip
+ * 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
-rw-r--r--ChangeLog4
-rw-r--r--camel/camel-formatter.c4
-rw-r--r--tests/test-formatter.c13
3 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index a652ba148b..2745cd92fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2000-02-08 Matt Loper <matt.loper@splashtech.com>
+ * tests/test-formatter.c (convert_to_html_and_print): Fixed call
+ to 'camel_formatter_mime_message_to_html' to contain correct
+ params.
+
* camel/camel-formatter.c: New member to 'CamelFormatterPrivate',
'attachments', will be used to let the caller know which items
should be treated as attachments (as opposed to objects which are
diff --git a/camel/camel-formatter.c b/camel/camel-formatter.c
index 49033f05a7..4a1b873141 100644
--- a/camel/camel-formatter.c
+++ b/camel/camel-formatter.c
@@ -71,8 +71,8 @@ static void handle_unknown_type (CamelFormatter *formatter,
/* encodes some characters into their 'escaped' version;
* so '<' turns into '&lt;', and '"' turns into '&quot;' */
static gchar* text_to_html (const guchar *input,
- guint len,
- guint *encoded_len_return);
+ guint len,
+ guint *encoded_len_return);
/* compares strings case-insensitively */
static gint strcase_equal (gconstpointer v, gconstpointer v2);
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