evolution r35444 - in trunk/calendar: . gui



Author: mcrha
Date: Tue Apr 29 14:11:45 2008
New Revision: 35444
URL: http://svn.gnome.org/viewvc/evolution?rev=35444&view=rev

Log:
2008-04-29  Milan Crha  <mcrha redhat com>

	** Fix for bug #240823

	* gui/itip-utils.c: (comp_to_list):
	Send notification only to individuals and groups.



Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/itip-utils.c

Modified: trunk/calendar/gui/itip-utils.c
==============================================================================
--- trunk/calendar/gui/itip-utils.c	(original)
+++ trunk/calendar/gui/itip-utils.c	Tue Apr 29 14:11:45 2008
@@ -499,7 +499,9 @@
 		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 @@
 			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 @@
 		}
 		break;
 
-
 	case E_CAL_COMPONENT_METHOD_ADD:
 	case E_CAL_COMPONENT_METHOD_REFRESH:
 	case E_CAL_COMPONENT_METHOD_COUNTER:
@@ -592,6 +596,9 @@
 		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))



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