[evolution-patches] Fix for calendar items appearing read on the mailer



hi,
 In some random cases, if the calendar downloads an item while polling
for changes, before the mailer has had a chance to retrieve it, the
items appear already read. The proposed fix uses the 'peek' to rectify
the problem.

Harish
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.437
diff -u -p -r1.437 ChangeLog
--- ChangeLog	12 Mar 2005 11:16:09 -0000	1.437
+++ ChangeLog	12 Mar 2005 11:21:19 -0000
@@ -1,5 +1,12 @@
 2005-03-12  Harish Krishnaswamy <kharish novell com>
 	
+	* backends/groupwise/e-cal-backend-groupwise.c (get_deltas) :
+	use 'peek' while downloading new items so when the calendar gets 
+	the new item before the mailer has a chance to retrieve it, the item
+	is not flagged read.
+	
+2005-03-12  Harish Krishnaswamy <kharish novell com>
+	
 	Fixes a memory corruption issue in GW backend 
 	* backends/groupwise/e-cal-backend-groupwise.c (get_deltas) :
 	strftime should be passed an array of sufficient length, not a
Index: backends/groupwise/e-cal-backend-groupwise.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise.c,v
retrieving revision 1.137
diff -u -p -r1.137 e-cal-backend-groupwise.c
--- backends/groupwise/e-cal-backend-groupwise.c	12 Mar 2005 11:16:10 -0000	1.137
+++ backends/groupwise/e-cal-backend-groupwise.c	12 Mar 2005 11:21:19 -0000
@@ -224,10 +224,10 @@ get_deltas (gpointer handle)
 	}
 
 	time_string = g_strdup (t_str);
-	status = e_gw_connection_get_quick_messages (cnc, cbgw->priv->container_id, "attachments recipients message recipientStatus default", &time_string, "New", "CalendarItem", NULL,  -1,  &item_list);
+	status = e_gw_connection_get_quick_messages (cnc, cbgw->priv->container_id, "attachments recipients message recipientStatus default peek", &time_string, "New", "CalendarItem", NULL,  -1,  &item_list);
 	
 	if (status == E_GW_CONNECTION_STATUS_INVALID_CONNECTION)
-		status = e_gw_connection_get_quick_messages (cnc, cbgw->priv->container_id, "attachments recipients message recipientStatus default", &time_string, "New", "CalendarItem", NULL,  -1,  &item_list);
+		status = e_gw_connection_get_quick_messages (cnc, cbgw->priv->container_id, "attachments recipients message recipientStatus default peek", &time_string, "New", "CalendarItem", NULL,  -1,  &item_list);
 	
 	if (status != E_GW_CONNECTION_STATUS_OK) {
 				


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