aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-11-28 05:58:14 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-11-28 05:58:14 +0800
commit45aa3c76643dfc428fc9eaf19857239f71e16dc5 (patch)
tree0762c25963fc34ec3006833e534ec31038b7e1be /mail
parent7660ee4120e1337646bdb1aa781babaeb4dfb4d1 (diff)
downloadgsoc2013-evolution-45aa3c76643dfc428fc9eaf19857239f71e16dc5.tar
gsoc2013-evolution-45aa3c76643dfc428fc9eaf19857239f71e16dc5.tar.gz
gsoc2013-evolution-45aa3c76643dfc428fc9eaf19857239f71e16dc5.tar.bz2
gsoc2013-evolution-45aa3c76643dfc428fc9eaf19857239f71e16dc5.tar.lz
gsoc2013-evolution-45aa3c76643dfc428fc9eaf19857239f71e16dc5.tar.xz
gsoc2013-evolution-45aa3c76643dfc428fc9eaf19857239f71e16dc5.tar.zst
gsoc2013-evolution-45aa3c76643dfc428fc9eaf19857239f71e16dc5.zip
Reverted the non-NULL mime-type patch from a little while back, didn't
2001-11-27 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (format_mime_part): Reverted the non-NULL mime-type patch from a little while back, didn't mean to commit this. svn path=/trunk/; revision=14798
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-format.c8
2 files changed, 8 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 175335b623..ceebff7715 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-27 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-format.c (format_mime_part): Reverted the non-NULL
+ mime-type patch from a little while back, didn't mean to commit
+ this.
+
2001-11-25 Not Zed <NotZed@Ximian.com>
* mail-config.c (config_read): Enable news accounts that exist
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 8ec33cd83c..051eda7b3f 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -672,10 +672,6 @@ format_mime_part (CamelMimePart *part, MailDisplay *md)
get_location (part, md);
wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (part));
- if (wrapper == NULL) {
- g_warning ("mime part does not contain any data");
- return TRUE;
- }
if (CAMEL_IS_MULTIPART (wrapper) &&
camel_multipart_get_number (CAMEL_MULTIPART (wrapper)) == 0) {
@@ -692,7 +688,7 @@ format_mime_part (CamelMimePart *part, MailDisplay *md)
mime_type = camel_data_wrapper_get_mime_type (wrapper);
g_strdown (mime_type);
- handler = mime_type ? mail_lookup_handler (mime_type) : NULL;
+ handler = mail_lookup_handler (mime_type);
if (!handler) {
char *id_type;
@@ -701,7 +697,7 @@ format_mime_part (CamelMimePart *part, MailDisplay *md)
* evil infinite recursion.
*/
- if (mime_type && !strcmp (mime_type, "application/mac-binhex40")) {
+ if (!strcmp (mime_type, "application/mac-binhex40")) {
handler = NULL;
} else {
id_type = mail_identify_mime_part (part, md);