[evolution-mapi/gnome-2-32] Bug #633182 - Meeting invites sent also to organiser



commit cb56cf406702efb2b9073b52b4837404e6779adb
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 2 14:52:39 2010 +0100

    Bug #633182 - Meeting invites sent also to organiser

 src/libexchangemapi/exchange-mapi-cal-utils.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-cal-utils.c b/src/libexchangemapi/exchange-mapi-cal-utils.c
index 9cc9aca..fff3830 100644
--- a/src/libexchangemapi/exchange-mapi-cal-utils.c
+++ b/src/libexchangemapi/exchange-mapi-cal-utils.c
@@ -368,9 +368,14 @@ exchange_mapi_cal_util_fetch_recipients (ECalComponent *comp, GSList **recip_lis
 		const gchar *str = NULL;
 		icalparameter *param;
 
+		str = icalproperty_get_attendee (att_prop);
+		if (!str || g_ascii_strcasecmp (str, org) == 0) {
+			att_prop = icalcomponent_get_next_property (icalcomp, ICAL_ATTENDEE_PROPERTY);
+			continue;
+		}
+
 		recipient = g_new0 (ExchangeMAPIRecipient, 1);
 
-		str = icalproperty_get_attendee (att_prop);
 		if (!g_ascii_strncasecmp (str, "mailto:";, 7))
 			recipient->email_id = (str) + 7;
 		else



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