[evolution-data-server] Bug 634663 - e-calendar-factory crashes while retracting a meeting.



commit b950c648f74fedcc43c1b8fb8583bab032a80e4c
Author: Punit Jain <jpunit novell com>
Date:   Mon Mar 21 09:14:16 2011 +0530

    Bug 634663 - e-calendar-factory crashes while retracting a meeting.
    
    We were sending wrong users list. The patch resolves the issue.

 .../backends/groupwise/e-cal-backend-groupwise.c   |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c
index 60fce4a..11d717c 100644
--- a/calendar/backends/groupwise/e-cal-backend-groupwise.c
+++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c
@@ -2730,10 +2730,15 @@ e_cal_backend_groupwise_send_objects (ECalBackendSync *backend, EDataCal *cal, c
 			e_cal_component_get_attendee_list (comp, &attendee_list);
 			/* convert this into GList */
 			for (tmp = attendee_list; tmp; tmp = g_slist_next (tmp)) {
-				const gchar *attendee = tmp->data;
-
-				if (attendee)
-					*users = g_list_append (*users, g_strdup (attendee));
+				ECalComponentAttendee *attendee = NULL;
+				const gchar *email_id = NULL;
+				attendee = (ECalComponentAttendee *) (tmp->data);
+				if (attendee) {
+					email_id = attendee->value;
+					if (!g_ascii_strncasecmp (email_id, "mailto:";, 7))
+						email_id += 7;
+					*users = g_list_append (*users, g_strdup (email_id));
+				}
 			}
 
 			g_object_unref (comp);



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