From 44599851907321d9ec4f4f16ad4dcfe94af554e5 Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Tue, 26 Apr 2005 12:48:25 +0000 Subject: [PATCH] Reverting patch adding itemReference in the EGwItemAttachment structure. 2005-04-26 Parthasarathi Susarla * e-gw-item.[ch]: Reverting patch adding itemReference in the EGwItemAttachment structure. --- servers/groupwise/ChangeLog | 4 ++++ servers/groupwise/e-gw-item.c | 6 ++++-- servers/groupwise/e-gw-item.h | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/servers/groupwise/ChangeLog b/servers/groupwise/ChangeLog index 9bcdb13..5176c2c 100644 --- a/servers/groupwise/ChangeLog +++ b/servers/groupwise/ChangeLog @@ -1,3 +1,7 @@ +2005-04-26 Parthasarathi Susarla + * e-gw-item.[ch]: Reverting patch adding itemReference + in the EGwItemAttachment structure. + 2005-04-22 Vivek Jain * e-gw-cotainer.c: diff --git a/servers/groupwise/e-gw-item.c b/servers/groupwise/e-gw-item.c index e4b213f..166f4a9 100644 --- a/servers/groupwise/e-gw-item.c +++ b/servers/groupwise/e-gw-item.c @@ -1784,8 +1784,10 @@ e_gw_item_new_from_soap_parameter (const char *email, const char *container, Sou char *ref = NULL; attach->id = soup_soap_parameter_get_string_value (temp) ; ref = soup_soap_parameter_get_property (temp, "itemReference"); - if (ref) - attach->reference = atoi(ref), g_free (ref); + if (ref) { + attach->contentType = g_strdup_printf ("gw:%s",ref); + g_free (ref); + } } temp = soup_soap_parameter_get_first_child_by_name (attachment_param, "name") ; diff --git a/servers/groupwise/e-gw-item.h b/servers/groupwise/e-gw-item.h index 148aca7..ad5871f 100644 --- a/servers/groupwise/e-gw-item.h +++ b/servers/groupwise/e-gw-item.h @@ -121,7 +121,6 @@ typedef struct { typedef struct { char *id ; - int reference; char *name ; char *contentType ; int size ; -- 2.7.4