aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-04-26 18:25:52 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-04-26 18:25:52 +0800
commit854e4ba9a41e908b182a65b38bfa3f10adee85e0 (patch)
tree36f1bfd51c1becf53ad7f001812e819f05d96dd1 /composer/e-msg-composer-attachment-bar.c
parent8201b137c7bad00c6fca96c1f312886d20f6941f (diff)
downloadgsoc2013-evolution-854e4ba9a41e908b182a65b38bfa3f10adee85e0.tar
gsoc2013-evolution-854e4ba9a41e908b182a65b38bfa3f10adee85e0.tar.gz
gsoc2013-evolution-854e4ba9a41e908b182a65b38bfa3f10adee85e0.tar.bz2
gsoc2013-evolution-854e4ba9a41e908b182a65b38bfa3f10adee85e0.tar.lz
gsoc2013-evolution-854e4ba9a41e908b182a65b38bfa3f10adee85e0.tar.xz
gsoc2013-evolution-854e4ba9a41e908b182a65b38bfa3f10adee85e0.tar.zst
gsoc2013-evolution-854e4ba9a41e908b182a65b38bfa3f10adee85e0.zip
Use camel_mime_part_set_text() to set the text rather than messing with
2000-04-26 NotZed <NotZed@HelixCode.com> * e-msg-composer.c (build_message): Use camel_mime_part_set_text() to set the text rather than messing with data wrappers. * e-msg-composer-attachment-bar.c (attach_to_multipart): Change for new camel-stream interfaces. (attach_to_multipart): Also set base64 encoding by default. svn path=/trunk/; revision=2623
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r--composer/e-msg-composer-attachment-bar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index 59785587fd..c37c9558a0 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -622,13 +622,13 @@ attach_to_multipart (CamelMultipart *multipart,
content = CAMEL_DATA_WRAPPER (gtk_object_new (CAMEL_SIMPLE_DATA_WRAPPER_TYPE,
NULL));
camel_data_wrapper_set_mime_type (content, attachment->mime_type);
- stream = camel_stream_fs_new_with_name (attachment->file_name,
- CAMEL_STREAM_FS_READ);
+ stream = camel_stream_fs_new_with_name (attachment->file_name, O_RDONLY, 0);
camel_data_wrapper_construct_from_stream (content, stream);
camel_stream_close (stream);
camel_medium_set_content_object (CAMEL_MEDIUM (part), content);
- /* FIXME: What about Content-Transfer-Encoding? */
+ /* TODO: could possibly select an appropriate encoder based on the content */
+ camel_mime_part_set_encoding((CamelMimePart *)part, CAMEL_MIME_PART_ENCODING_BASE64);
camel_multipart_add_part (multipart, part);
}