[evolution-ews] Fix e_ews_collect_attnedees to not add organizer to attendees list
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fix e_ews_collect_attnedees to not add organizer to attendees list
- Date: Tue, 12 Jul 2011 09:45:54 +0000 (UTC)
commit 7b114ed85bbb05135e49055dce235cf1f3c5170b
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Tue Jul 12 12:44:22 2011 +0300
Fix e_ews_collect_attnedees to not add organizer to attendees list
src/calendar/e-cal-backend-ews-utils.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews-utils.c b/src/calendar/e-cal-backend-ews-utils.c
index 9caacba..b63bf54 100644
--- a/src/calendar/e-cal-backend-ews-utils.c
+++ b/src/calendar/e-cal-backend-ews-utils.c
@@ -58,14 +58,13 @@ void e_ews_collect_attendees(icalcomponent *comp, GSList **required, GSList **op
prop = icalcomponent_get_next_property (comp, ICAL_ATTENDEE_PROPERTY)) {
str = icalproperty_get_attendee (prop);
+ /* figure the email address of the attendee, discard "mailto:" if it's there */
+ if (!g_ascii_strncasecmp (str, "mailto:", 7)) str = (str) + 7;
/* if this attenddee is the orgenizer - dont add him/her
in some cases there is no maito for email if meeting orginazer*/
if (g_ascii_strcasecmp (org_email_address, str) == 0) continue;
- /* figure the email address of the attendee, discard "mailto:" if it's there */
- if (!g_ascii_strncasecmp (str, "mailto:", 7)) str = (str) + 7;
-
/* figure type of attendee, add to relevant list */
param = icalproperty_get_first_parameter (prop, ICAL_ROLE_PARAMETER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]