[evolution-patches] (groupwise) fix for bug 273419



Hi,
The attached patch fixes bug 273419
(http://bugzilla.gnome.org/show_bug.cgi?id=273419)
Sets the mail size got from soap, in the EGwItem structure.

Cheers and Thanks,
partha


Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/ChangeLog,v
retrieving revision 1.132
diff -u -p -r1.132 ChangeLog
--- ChangeLog	7 Apr 2005 15:49:59 -0000	1.132
+++ ChangeLog	22 Apr 2005 11:15:20 -0000
@@ -1,3 +1,11 @@
+2005-04-22  Parthasarathi Susarla <sparthasarathi novell com>
+	
+	* e-gw-item.[ch]:
+	  (e_gw_item_new_from_soap_parameter):
+	  (e_gw_item_get_mail_size): Parse for the size 
+	  element in the soap response.
+	  Fixes Bug **273419
+
 2005-04-07  Parthasarathi Susarla <sparthasarathi novell com>
 	
 	* e-gw-connection.c: (e_gw_connection_get_quick_messages):
Index: e-gw-item.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-item.c,v
retrieving revision 1.76
diff -u -p -r1.76 e-gw-item.c
--- e-gw-item.c	7 Apr 2005 07:16:06 -0000	1.76
+++ e-gw-item.c	22 Apr 2005 11:15:20 -0000
@@ -56,6 +56,7 @@ struct _EGwItemPrivate {
 	GSList *recipient_list;
 	GSList *recurrence_dates;
 	int trigger; /* alarm */
+	int size;   /*message size*/
 	EGwItemOrganizer *organizer;
 
 	/*properties for mail*/
@@ -1685,6 +1686,9 @@ e_gw_item_new_from_soap_parameter (const
 				e_gw_item_set_organizer (item, organizer);
 			}
 
+		} else if (!g_ascii_strcasecmp (name, "size")) {
+			item->priv->size = atoi(soup_soap_parameter_get_string_value (child));
+			
 		} else if (!g_ascii_strcasecmp (name, "options")) {
 			SoupSoapParameter *subparam;
 			char *value = NULL;
@@ -1909,6 +1913,13 @@ e_gw_item_get_id (EGwItem *item)
 	g_return_val_if_fail (E_IS_GW_ITEM (item), NULL);
 
 	return (const char *) item->priv->id;
+}
+
+int
+e_gw_item_get_mail_size (EGwItem *item)
+{
+	g_return_val_if_fail (E_IS_GW_ITEM (item), NULL);
+	return item->priv->size;
 }
 
 void
Index: e-gw-item.h
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-item.h,v
retrieving revision 1.30
diff -u -p -r1.30 e-gw-item.h
--- e-gw-item.h	7 Apr 2005 07:16:06 -0000	1.30
+++ e-gw-item.h	22 Apr 2005 11:15:20 -0000
@@ -193,6 +193,7 @@ const char *e_gw_item_get_msg_content_ty
 guint32     e_gw_item_get_item_status (EGwItem *item);
 void	    e_gw_item_set_content_type (EGwItem *item, const char *content_type) ;
 char	    *e_gw_item_get_content_type (EGwItem *item) ;
+int	    e_gw_item_get_mail_size (EGwItem *item);
 void e_gw_item_set_change (EGwItem *item, EGwItemChangeType change_type, char *field_name, gpointer field_value);
 gboolean e_gw_item_append_changes_to_soap_message (EGwItem *item, SoupSoapMessage *msg);
 void e_gw_item_set_category_name (EGwItem *item, char *cateogry_name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]