[evolution-ews] Receive_object : Implementing receiving meeting cancellation. After this patch you generally have to



commit 51ab75fdba93fafadf53bf9c37f92d5578b8caf9
Author: Pavel Ocheretny <pocheretny src gnome org>
Date:   Wed Jun 1 12:28:27 2011 +0300

    Receive_object : Implementing receiving meeting cancellation.
    After this patch you generally have to be able to accept/decline and
    receive meeting from Exchange accounts.
    Non-Exchange account not supported yet.
    We found that Exchange is not pre-processing meeting requests mails and do not creating a calendar items for us
    as it doing for Exchange based accounts

 src/calendar/e-cal-backend-ews.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index fd68ef8..f683aed 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1544,7 +1544,7 @@ e_cal_backend_ews_receive_objects (ECalBackend *backend, EDataCal *cal, EServerM
 		const char *response_type;
 		gchar *item_id = NULL, *change_key = NULL;
 		GSList *ids = NULL, *l;
-		icalproperty *transp;
+		icalproperty *recurrence_id, *transp;
 
 
 		/* duplicate the ical component */
@@ -1607,6 +1607,9 @@ e_cal_backend_ews_receive_objects (ECalBackend *backend, EDataCal *cal, EServerM
 				g_free (accept_data);
 				break;
 			case ICAL_METHOD_CANCEL:
+				recurrence_id = icalcomponent_get_first_property (subcomp, ICAL_RECURRENCEID_PROPERTY);
+				e_cal_backend_ews_remove_object (backend, cal, NULL, item_id, icalproperty_get_value_as_string (recurrence_id), CALOBJ_MOD_ALL);
+				break;
 			default:
 				break;
 		}



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