[evolution-ews] I#31 - Duplicate attendees in meetings from Office365.com
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] I#31 - Duplicate attendees in meetings from Office365.com
- Date: Mon, 21 Jan 2019 17:30:07 +0000 (UTC)
commit ea3400e25d614943a2337cd881bd8b7699ab6717
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 21 18:29:55 2019 +0100
I#31 - Duplicate attendees in meetings from Office365.com
Closes https://gitlab.gnome.org/GNOME/evolution-ews/issues/31
src/calendar/e-cal-backend-ews.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 72bf4d41..9eea63f5 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -742,6 +742,14 @@ ecb_ews_item_to_component_sync (ECalBackendEws *cbews,
gboolean is_response_requested = e_ews_item_get_is_response_requested (item);
gchar *user_email;
+ /* Remove any existing attendees first (as Office365.com (and possibly Exchange 2016)
includes them) */
+ for (icalprop = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY);
+ icalprop;
+ icalprop = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY)) {
+ icalcomponent_remove_property (icalcomp, icalprop);
+ icalproperty_free (icalprop);
+ }
+
user_email = camel_ews_settings_dup_email (ews_settings);
/* Attendees */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]