[evolution-patches] [Calendar-groupwise] revised fix for bug id 309499
- From: "P. S. Chakravarthi" <pchakravarthi novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] [Calendar-groupwise] revised fix for bug id 309499
- Date: Sat, 06 Aug 2005 14:39:27 +0530
hi
Please review this revised fix for
bug 309499.
I forgot to free the attendee_list last time.
regards.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.489
diff -u -p -w -r1.489 ChangeLog
--- ChangeLog 3 Aug 2005 08:34:18 -0000 1.489
+++ ChangeLog 6 Aug 2005 09:05:57 -0000
@@ -1,3 +1,11 @@
+2005-08-06 P. S. Chakravarthi <pchakravarthi novell com>
+
+ Fixes #309499
+ * backends/groupwise/e-cal-backend-groupwise-utils.c:
+ (set_attendees_to_item): Reset the 'delfrom' parameter to
+ empty string and set the attendee_list back to the ECalComponent
+ so that recipient list is build, containing current invitees only.
+
2005-08-02 Chenthill Palanisamy <pchenthill novell com>
Fixes #310328
Index: backends/groupwise/e-cal-backend-groupwise-utils.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c,v
retrieving revision 1.60
diff -u -p -w -r1.60 e-cal-backend-groupwise-utils.c
--- backends/groupwise/e-cal-backend-groupwise-utils.c 3 Aug 2005 08:34:18 -0000 1.60
+++ backends/groupwise/e-cal-backend-groupwise-utils.c 6 Aug 2005 09:06:02 -0000
@@ -342,6 +342,8 @@ e_cal_backend_groupwise_set_attachments_
static void
set_attendees_to_item (EGwItem *item, ECalComponent *comp, icaltimezone *default_zone, gboolean delegate, const char *user_email)
{
+ gboolean attendee_list_modified = 0;
+
if (e_cal_component_has_attendees (comp)) {
GSList *attendee_list, *recipient_list = NULL, *al;
@@ -353,6 +355,12 @@ set_attendees_to_item (EGwItem *item, EC
if (delegate && (g_str_equal (attendee->value + 7, user_email) || !(attendee->delfrom && *attendee->delfrom)))
continue;
+ if(delegate)
+ if(attendee->delfrom && *attendee->delfrom) {
+ attendee->delfrom = "";
+ attendee_list_modified = 1;
+ }
+
recipient = g_new0 (EGwItemRecipient, 1);
/* len (MAILTO:) + 1 = 7 */
@@ -375,6 +383,15 @@ set_attendees_to_item (EGwItem *item, EC
recipient_list = g_slist_append (recipient_list, recipient);
}
+ /* Reset the ECalComponent with changes if necessary*/
+ if(attendee_list_modified)
+ e_cal_component_set_attendee_list (comp, attendee_list);
+
+ /* Freeing attendee list here. */
+ if(attendee_list)
+ e_cal_component_free_attendee_list(attendee_list);
+
+ /* recipient_list shouldn't be freed. Look into the function below. */
e_gw_item_set_recipient_list (item, recipient_list);
/* Send Options */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]