diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-22 10:08:10 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-22 10:08:10 +0800 |
commit | e55790f58b0e9c30aa9cb766b607dab634fa9cf4 (patch) | |
tree | dd05debde5b8532f6e75f344b682c7ec164209c4 | |
parent | 4b2464746f984012a57baeb9439215d159c63ece (diff) | |
download | gsoc2013-evolution-e55790f58b0e9c30aa9cb766b607dab634fa9cf4.tar gsoc2013-evolution-e55790f58b0e9c30aa9cb766b607dab634fa9cf4.tar.gz gsoc2013-evolution-e55790f58b0e9c30aa9cb766b607dab634fa9cf4.tar.bz2 gsoc2013-evolution-e55790f58b0e9c30aa9cb766b607dab634fa9cf4.tar.lz gsoc2013-evolution-e55790f58b0e9c30aa9cb766b607dab634fa9cf4.tar.xz gsoc2013-evolution-e55790f58b0e9c30aa9cb766b607dab634fa9cf4.tar.zst gsoc2013-evolution-e55790f58b0e9c30aa9cb766b607dab634fa9cf4.zip |
Only do the rawtext checks if the part is a text part, otherwise don't
2001-10-21 Jeffrey Stedfast <fejj@ximian.com>
* 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
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-part-utils.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <fejj@ximian.com> + * 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); |