diff options
| author | Bharath Acharya <abharath@novell.com> | 2009-06-11 15:27:05 +0530 |
|---|---|---|
| committer | Bharath Acharya <abharath@novell.com> | 2009-06-11 15:27:05 +0530 |
| commit | 6be48b0f55981e67fab9f8243d2d504387dc5691 (patch) | |
| tree | 23b0504b3a11703e22f911401417c26d2a2404ff | |
| parent | 3d18870c6680091eaf83f1add8205369ed1aacd4 (diff) | |
| download | evolution-data-server-6be48b0f55981e67fab9f8243d2d504387dc5691.tar.gz | |
** 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.
| -rw-r--r-- | 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 8ff1de9ca..ac10ffa3c 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); |
