[evolution-mapi] Bug 585851 – Invalid calendar attachments due to truncation.
- From: Johnny Jacob <jjohnny src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug 585851 – Invalid calendar attachments due to truncation.
- Date: Wed, 12 Aug 2009 11:27:22 +0000 (UTC)
commit d037c758071cf837a1c94c67bc2102722e2d575d
Author: Mattias Eriksson <snaggen acc umu se>
Date: Wed Aug 12 16:55:01 2009 +0530
Bug 585851 â?? Invalid calendar attachments due to truncation.
Follows up with ed912a5616eb6d67f097628043f729f14353ac07
src/camel/camel-mapi-folder.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index 3d7b9f4..fa680df 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1431,13 +1431,14 @@ mapi_populate_msg_body_from_item (CamelMultipart *multipart, MapiItem *item, Exc
if (body) {
if (item->is_cal)
- camel_mime_part_set_content(part, (const char *) body->value->data, body->value->len, "text/calendar");
+ camel_mime_part_set_content(part, (const char *) body->value->data,
+ body->value->len, "text/calendar");
else {
type = (body->proptag == PR_BODY || body->proptag == PR_BODY_UNICODE) ?
"text/plain" : "text/html";
- /*NOTE : Last byte null mess up CRLF*. Probably needs a fix in e*fetch_items. */
- camel_mime_part_set_content (part, (const char *) body->value->data, body->value->len - 1, type );
+ camel_mime_part_set_content (part, (const char *) body->value->data,
+ body->value->len, type );
}
} else
camel_mime_part_set_content(part, " ", strlen(" "), "text/html");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]