From 947db02fb125098ef775536cf0649a22b64e2ba9 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 29 Apr 2008 14:11:45 +0000 Subject: ** Fix for bug #240823 2008-04-29 Milan Crha ** Fix for bug #240823 * gui/itip-utils.c: (comp_to_list): Send notification only to individuals and groups. svn path=/trunk/; revision=35444 --- calendar/gui/itip-utils.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 9398bcfd52..e529042051 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -499,7 +499,9 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users, for (l = attendees; l != NULL; l = l->next) { ECalComponentAttendee *att = l->data; - if (users_has_attendee (users, att->value)) + if (att->cutype != ICAL_CUTYPE_INDIVIDUAL && att->cutype != ICAL_CUTYPE_GROUP) + continue; + else if (users_has_attendee (users, att->value)) continue; else if (att->sentby && users_has_attendee (users, att->sentby)) continue; @@ -541,6 +543,9 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users, for (l = attendees; l != NULL; l = l->next) { ECalComponentAttendee *att = l->data; + if (att->cutype != ICAL_CUTYPE_INDIVIDUAL && att->cutype != ICAL_CUTYPE_GROUP) + continue; + destination = e_destination_new (); if (att->cn != NULL) e_destination_set_name (destination, att->cn); @@ -564,7 +569,6 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users, } break; - case E_CAL_COMPONENT_METHOD_ADD: case E_CAL_COMPONENT_METHOD_REFRESH: case E_CAL_COMPONENT_METHOD_COUNTER: @@ -592,6 +596,9 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users, for (l = attendees; l != NULL; l = l->next) { ECalComponentAttendee *att = l->data; + if (att->cutype != ICAL_CUTYPE_INDIVIDUAL && att->cutype != ICAL_CUTYPE_GROUP) + continue; + if (!g_ascii_strcasecmp (itip_strip_mailto (att->value), sender) || (att->sentby && !g_ascii_strcasecmp (itip_strip_mailto (att->sentby), sender))){ if (!(att->delfrom && *att->delfrom)) -- cgit