From 45aa3c76643dfc428fc9eaf19857239f71e16dc5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 27 Nov 2001 21:58:14 +0000 Subject: Reverted the non-NULL mime-type patch from a little while back, didn't 2001-11-27 Jeffrey Stedfast * 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 --- mail/ChangeLog | 6 ++++++ mail/mail-format.c | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'mail') 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 + + * 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 * 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); -- cgit