From 137b0743ddfbd3bbc01c9813615ede91ddd9b954 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 4 Jul 2010 17:40:28 -0400 Subject: Migrate from CamelException to GError. --- plugins/templates/templates.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/templates/templates.c') diff --git a/plugins/templates/templates.c b/plugins/templates/templates.c index 74e167a9fe..5bf3eb7e65 100644 --- a/plugins/templates/templates.c +++ b/plugins/templates/templates.c @@ -483,9 +483,10 @@ create_new_message (CamelFolder *folder, const gchar *uid, CamelMimeMessage *mes /* make the exact copy of the template message, with all its attachments and message structure */ mem = camel_stream_mem_new (); - camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (template), mem); - camel_stream_reset (mem); - camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (new), mem); + camel_data_wrapper_write_to_stream ( + CAMEL_DATA_WRAPPER (template), mem, NULL); + camel_stream_reset (mem, NULL); + camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (new), mem, NULL); g_object_unref (mem); /* Add the headers from the message we are replying to, so CC and that -- cgit