aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-02-29 22:12:59 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-02-29 22:12:59 +0800
commit39cbe68b8aba4a2839f10a4473f18954e591a5bf (patch)
treed36bc2ee1e78852871085c6381c582500d129e1e /camel/camel-mime-part.c
parent57bf3cc473c15d3f630aa8fde4ea52e083c5bdc6 (diff)
downloadgsoc2013-evolution-39cbe68b8aba4a2839f10a4473f18954e591a5bf.tar
gsoc2013-evolution-39cbe68b8aba4a2839f10a4473f18954e591a5bf.tar.gz
gsoc2013-evolution-39cbe68b8aba4a2839f10a4473f18954e591a5bf.tar.bz2
gsoc2013-evolution-39cbe68b8aba4a2839f10a4473f18954e591a5bf.tar.lz
gsoc2013-evolution-39cbe68b8aba4a2839f10a4473f18954e591a5bf.tar.xz
gsoc2013-evolution-39cbe68b8aba4a2839f10a4473f18954e591a5bf.tar.zst
gsoc2013-evolution-39cbe68b8aba4a2839f10a4473f18954e591a5bf.zip
new utility function.
2000-02-29 bertrand <bertrand@helixcode.com> * camel-stream-b64.c (camel_stream_b64_write_to_stream): new utility function. * camel-data-wrapper.c (_write_to_stream): default implementation. svn path=/trunk/; revision=1989
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index f9fb82cdc3..b6e5b55c36 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -675,13 +675,8 @@ _write_content_to_stream (CamelMimePart *mime_part, CamelStream *stream)
camel_data_wrapper_write_to_stream (content, stream);
break;
case CAMEL_MIME_PART_ENCODING_BASE64:
- wrapper_stream = camel_data_wrapper_get_stream (content);
- if (wrapper_stream == NULL) {
- /* FIXME in this case, we should probably copy stuff
- in-memory and make sure things work anyway. */
- g_warning ("Class `%s' does not implement `get_stream'",
- gtk_type_name (GTK_OBJECT (content)->klass->type));
- }
+ wrapper_stream = camel_data_wrapper_get_output_stream (content);
+
gmime_encode_base64_to_stream (wrapper_stream, stream);
break;
default: