diff options
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 6 |
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); |