aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-04-23 02:14:44 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-04-23 02:14:44 +0800
commit42a22586d2dc98cbae74db6a1281ff862167f930 (patch)
tree697365f9767ec0a86625654cec9b7c4b03bc0f62
parent469e6d297113db67c5b295bcb287e40e271f2d55 (diff)
downloadgsoc2013-evolution-42a22586d2dc98cbae74db6a1281ff862167f930.tar
gsoc2013-evolution-42a22586d2dc98cbae74db6a1281ff862167f930.tar.gz
gsoc2013-evolution-42a22586d2dc98cbae74db6a1281ff862167f930.tar.bz2
gsoc2013-evolution-42a22586d2dc98cbae74db6a1281ff862167f930.tar.lz
gsoc2013-evolution-42a22586d2dc98cbae74db6a1281ff862167f930.tar.xz
gsoc2013-evolution-42a22586d2dc98cbae74db6a1281ff862167f930.tar.zst
gsoc2013-evolution-42a22586d2dc98cbae74db6a1281ff862167f930.zip
Don't ever attach non-inlined text or message parts. Reverts a prior fix.
2003-04-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): Don't ever attach non-inlined text or message parts. Reverts a prior fix. svn path=/trunk/; revision=20923
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c10
2 files changed, 8 insertions, 7 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index fbcc50a7fb..13905ff421 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -10,6 +10,11 @@
2003-04-21 Jeffrey Stedfast <fejj@ximian.com>
+ * e-msg-composer.c (add_attachments_handle_mime_part): Don't ever
+ attach non-inlined text or message parts. Reverts a prior fix.
+
+2003-04-21 Jeffrey Stedfast <fejj@ximian.com>
+
* e-msg-composer-attachment.glade: Change the order of the
ok/cancel buttons.
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 8b1c70de90..c1fbf8ff1d 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3142,21 +3142,17 @@ add_attachments_handle_mime_part (EMsgComposer *composer, CamelMimePart *mime_pa
if (CAMEL_IS_MULTIPART (wrapper)) {
/* another layer of multipartness... */
add_attachments_from_multipart (composer, (CamelMultipart *) wrapper, just_inlines, depth + 1);
- } else if (CAMEL_IS_MIME_MESSAGE (wrapper)) {
- e_msg_composer_attach (composer, mime_part);
} else if (just_inlines) {
if (camel_mime_part_get_content_id (mime_part) ||
camel_mime_part_get_content_location (mime_part))
e_msg_composer_add_inline_image_from_mime_part (composer, mime_part);
+ } else if (CAMEL_IS_MIME_MESSAGE (wrapper)) {
+ /* do nothing */
} else if (related && header_content_type_is (content_type, "image", "*")) {
e_msg_composer_add_inline_image_from_mime_part (composer, mime_part);
} else {
if (header_content_type_is (content_type, "text", "*")) {
- const char *disposition;
-
- disposition = camel_mime_part_get_disposition (mime_part);
- if (disposition && !strcasecmp (disposition, "attachment"))
- e_msg_composer_attach (composer, mime_part);
+ /* do nothing */
} else {
e_msg_composer_attach (composer, mime_part);
}