64 lines
2.1 KiB
Diff
64 lines
2.1 KiB
Diff
Index: servers/groupwise/e-gw-item.c
|
|
===================================================================
|
|
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-item.c,v
|
|
retrieving revision 1.100
|
|
diff -u -p -r1.100 e-gw-item.c
|
|
--- servers/groupwise/e-gw-item.c 13 Jun 2006 07:15:37 -0000 1.100
|
|
+++ servers/groupwise/e-gw-item.c 13 Jun 2006 10:54:23 -0000
|
|
@@ -72,6 +72,7 @@ struct _EGwItemPrivate {
|
|
char *msg_body_id;
|
|
int item_status;
|
|
/*Attachments*/
|
|
+ gboolean has_attachment;
|
|
GSList *attach_list ;
|
|
/*linkInfo for replies*/
|
|
EGwItemLinkInfo *link_info;
|
|
@@ -525,6 +526,7 @@ e_gw_item_init (EGwItem *item, EGwItemCl
|
|
priv->self_status = 0;
|
|
priv->link_info = NULL;
|
|
priv->msg_body_id = NULL;
|
|
+ priv->has_attachment = FALSE;
|
|
item->priv = priv;
|
|
|
|
|
|
@@ -1795,6 +1797,9 @@ e_gw_item_new_from_soap_parameter (const
|
|
} else if (!g_ascii_strcasecmp (name, "size")) {
|
|
item->priv->size = soup_soap_parameter_get_int_value (child);
|
|
|
|
+ } else if (!g_ascii_strcasecmp (name, "hasAttachment")) {
|
|
+ item->priv->has_attachment = soup_soap_parameter_get_int_value (child);
|
|
+
|
|
} else if (!g_ascii_strcasecmp (name, "options")) {
|
|
SoupSoapParameter *subparam;
|
|
char *value = NULL;
|
|
@@ -2065,6 +2070,14 @@ e_gw_item_get_mail_size (EGwItem *item)
|
|
return item->priv->size;
|
|
}
|
|
|
|
+gboolean
|
|
+e_gw_item_has_attachment (EGwItem *item)
|
|
+{
|
|
+ g_return_val_if_fail (E_IS_GW_ITEM (item), 0);
|
|
+
|
|
+ return item->priv->has_attachment;
|
|
+}
|
|
+
|
|
char *
|
|
e_gw_item_get_creation_date (EGwItem *item)
|
|
{
|
|
Index: servers/groupwise/e-gw-item.h
|
|
===================================================================
|
|
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-item.h,v
|
|
retrieving revision 1.40
|
|
diff -u -p -r1.40 e-gw-item.h
|
|
--- servers/groupwise/e-gw-item.h 6 Dec 2005 10:05:57 -0000 1.40
|
|
+++ servers/groupwise/e-gw-item.h 13 Jun 2006 10:54:23 -0000
|
|
@@ -298,6 +298,7 @@ void e_gw_item_set_source (EGwItem *item
|
|
int e_gw_item_get_trigger (EGwItem *item);
|
|
void e_gw_item_set_trigger (EGwItem *item, int trigger);
|
|
|
|
+gboolean e_gw_item_has_attachment (EGwItem *item);
|
|
|
|
typedef struct {
|
|
char *email;
|