[evolution-data-server] ** BUGFIX: 585327 - Forward as attachment fails
- From: Bharath Acharya <abharath src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] ** BUGFIX: 585327 - Forward as attachment fails
- Date: Thu, 11 Jun 2009 05:59:35 -0400 (EDT)
commit 6be48b0f55981e67fab9f8243d2d504387dc5691
Author: Bharath Acharya <abharath novell com>
Date: Thu Jun 11 15:27:05 2009 +0530
** BUGFIX: 585327 - Forward as attachment fails
Attaching a message via drag and drop doesn't work for GW provider.
Patch picks up the item id now.
---
camel/providers/groupwise/camel-groupwise-utils.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/camel/providers/groupwise/camel-groupwise-utils.c b/camel/providers/groupwise/camel-groupwise-utils.c
index 8ff1de9..ac10ffa 100644
--- a/camel/providers/groupwise/camel-groupwise-utils.c
+++ b/camel/providers/groupwise/camel-groupwise-utils.c
@@ -343,11 +343,11 @@ send_as_attachment (EGwConnection *cnc, EGwItem *item, CamelStreamMem *content,
attachment->name = g_strdup (filename ? filename : "");
if (camel_content_type_is (type, "message", "rfc822")) {
- const gchar *message_id;
+ const gchar *item_id;
gchar *msgid;
gint len;
- message_id = camel_medium_get_header (CAMEL_MEDIUM (dw), "Message-Id");
+ item_id = camel_medium_get_header (CAMEL_MEDIUM (dw), "X-GW-ITEM-ID");
/*
* XXX: The following code piece is a screwed up way of doing stuff.
* But we dont have much choice. Do not use 'camel_header_msgid_decode'
@@ -355,9 +355,9 @@ send_as_attachment (EGwConnection *cnc, EGwItem *item, CamelStreamMem *content,
* groupwise server needs.
*/
- len = strlen (message_id);
+ len = strlen (item_id);
msgid = (gchar *)g_malloc0 (len-1);
- msgid = memcpy(msgid, message_id+2, len-3);
+ msgid = memcpy(msgid, item_id+2, len-3);
g_print ("||| msgid:%s\n", msgid);
status = e_gw_connection_forward_item (cnc, msgid, NULL, TRUE, &temp_item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]