aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-09-30 19:26:55 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-09-30 19:26:55 +0800
commitb7d9892cae363764e0f418feb4c0fedc347a0d9d (patch)
tree9c9f803f90165b383f59853a17a83777b5770828 /calendar/gui/dialogs/comp-editor.c
parent410ace5fad84c48973f381ad5ccd9d2e874c4ec2 (diff)
downloadgsoc2013-evolution-b7d9892cae363764e0f418feb4c0fedc347a0d9d.tar
gsoc2013-evolution-b7d9892cae363764e0f418feb4c0fedc347a0d9d.tar.gz
gsoc2013-evolution-b7d9892cae363764e0f418feb4c0fedc347a0d9d.tar.bz2
gsoc2013-evolution-b7d9892cae363764e0f418feb4c0fedc347a0d9d.tar.lz
gsoc2013-evolution-b7d9892cae363764e0f418feb4c0fedc347a0d9d.tar.xz
gsoc2013-evolution-b7d9892cae363764e0f418feb4c0fedc347a0d9d.tar.zst
gsoc2013-evolution-b7d9892cae363764e0f418feb4c0fedc347a0d9d.zip
Fixes #273847.
svn path=/trunk/; revision=30439
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 67d3c10411..6e4f15b315 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -2422,7 +2422,7 @@ comp_editor_get_mime_attach_list (CompEditor *editor)
CamelDataWrapper *wrapper;
CamelStreamMem *mstream;
unsigned char *buffer = NULL;
- const char *desc;
+ const char *desc, *disp;
cal_mime_attach = g_malloc0 (sizeof (struct CalMimeAttach));
wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (l->data));
@@ -2441,6 +2441,10 @@ comp_editor_get_mime_attach_list (CompEditor *editor)
cal_mime_attach->description = g_strdup (desc);
cal_mime_attach->content_type = g_strdup (camel_data_wrapper_get_mime_type (wrapper));
+ disp = camel_mime_part_get_disposition ((CamelMimePart *)l->data);
+ if (disp && !g_ascii_strcasecmp(disp, "inline"))
+ cal_mime_attach->disposition = TRUE;
+
attach_list = g_slist_append (attach_list, cal_mime_attach);
camel_object_unref (mstream);