[evolution-ews] If Task has HTML body, we have to convert it to plain text
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] If Task has HTML body, we have to convert it to plain text
- Date: Tue, 5 Jul 2011 09:39:34 +0000 (UTC)
commit b39cdc7ced6b97fa8a02edbc6d39e5135ed5571f
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Tue Jul 5 12:39:51 2011 +0300
If Task has HTML body, we have to convert it to plain text
src/server/e-ews-item.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/server/e-ews-item.c b/src/server/e-ews-item.c
index a724597..df05ec6 100644
--- a/src/server/e-ews-item.c
+++ b/src/server/e-ews-item.c
@@ -781,9 +781,12 @@ parse_task_field (EEwsItem *item, const gchar *name, ESoapParameter *subparam)
} else if (!g_ascii_strcasecmp (name, "Sensitivity")) {
priv->task_fields->sensitivity = e_soap_parameter_get_string_value (subparam);
} else if (!g_ascii_strcasecmp (name, "Body")) {
- value = e_soap_parameter_get_string_value (subparam);
- priv->task_fields->body = strip_html_tags (value);
- g_free (value);
+ if (!g_ascii_strcasecmp (e_soap_parameter_get_property (subparam, "BodyType"),"HTML")) {
+ value = e_soap_parameter_get_string_value (subparam);
+ priv->task_fields->body = strip_html_tags (value);
+ g_free (value);
+ } else
+ priv->task_fields->body = e_soap_parameter_get_string_value (subparam);
} else if (!g_ascii_strcasecmp (name, "Owner")) {
priv->task_fields->owner = e_soap_parameter_get_string_value (subparam);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]