From e55790f58b0e9c30aa9cb766b607dab634fa9cf4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 22 Oct 2001 02:08:10 +0000 Subject: Only do the rawtext checks if the part is a text part, otherwise don't 2001-10-21 Jeffrey Stedfast * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): Only do the rawtext checks if the part is a text part, otherwise don't bother wasting cpu cycles. svn path=/trunk/; revision=13861 --- camel/ChangeLog | 5 +++++ camel/camel-mime-part-utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 01658ef75b..6ab512a187 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,10 @@ 2001-10-21 Jeffrey Stedfast + * camel-mime-part-utils.c + (simple_data_wrapper_construct_from_parser): Only do the rawtext + checks if the part is a text part, otherwise don't bother wasting + cpu cycles. + * camel-store.c (camel_folder_info_build): Updated comments to make the code a bit more clear. diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index 831559ee27..1004509402 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -241,7 +241,7 @@ simple_data_wrapper_construct_from_parser (CamelDataWrapper *dw, CamelMimeParser dw->rawtext = TRUE; /* should we change the content-type header? */ } - } else { + } else if (header_content_type_is (ct, "text", "*")) { if (charset == NULL) { /* check that it's 7bit */ dw->rawtext = !is_7bit (buffer); -- cgit v1.2.3