From 4f20138bfc192d2feff2e913fbc0ff87ca6bd19c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 21 Jun 2000 02:09:48 +0000 Subject: flush the filter stream before unreffing it, so it will * camel-mime-part.c (write_to_stream): flush the filter stream before unreffing it, so it will camel_mime_filter_complete. * camel-stream-filter.c (camel_stream_filter_class_init): Fix a braino so camel_stream_flush works here. * camel-stream-mem.c (stream_seek): Fix a bug that resulted in large attachments being silently dropped. * providers/pop3/camel-pop3-store.c (camel_pop3_command_get_additional_data): Don't use g_strjoinv here, since it is O(n^2) on the length of the output string, and we can do O(n). * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): add a CRLF decoder after the QP/B64 decoder if it's text. svn path=/trunk/; revision=3658 --- camel/camel-mime-part.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'camel/camel-mime-part.c') diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 14b8106314..ab4c44b82f 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -542,8 +542,10 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) #endif count = camel_data_wrapper_write_to_stream (content, stream); - if (filter_stream) + if (filter_stream) { + camel_stream_flush((CamelStream *)filter_stream); gtk_object_unref((GtkObject *)filter_stream); + } if (count == -1) return -1; total += count; -- cgit v1.2.3