evolution r37477 - in trunk/plugins: mail-to-meeting mail-to-task



Author: mcrha
Date: Thu Mar 26 11:28:49 2009
New Revision: 37477
URL: http://svn.gnome.org/viewvc/evolution?rev=37477&view=rev

Log:
2009-03-26  Milan Crha  <mcrha redhat com>

	** Fix for bug #576696

	* plugins/mail-to-task/mail-to-task.c: (set_attendees):
	* plugins/mail-to-meeting/mail-to-meeting.c: (add_attendee_cb):
	Set mandatory properties.



Modified:
   trunk/plugins/mail-to-meeting/ChangeLog
   trunk/plugins/mail-to-meeting/mail-to-meeting.c
   trunk/plugins/mail-to-task/ChangeLog
   trunk/plugins/mail-to-task/mail-to-task.c

Modified: trunk/plugins/mail-to-meeting/mail-to-meeting.c
==============================================================================
--- trunk/plugins/mail-to-meeting/mail-to-meeting.c	(original)
+++ trunk/plugins/mail-to-meeting/mail-to-meeting.c	Thu Mar 26 11:28:49 2009
@@ -49,7 +49,9 @@
 	ca = g_new0 (ECalComponentAttendee, 1);
 	ca->value = str;
 	ca->cn = name;
-	/* FIXME: missing many fields */
+	ca->cutype = ICAL_CUTYPE_INDIVIDUAL;
+	ca->status = ICAL_PARTSTAT_NEEDSACTION;
+	ca->role = ICAL_ROLE_REQPARTICIPANT;
 
 	/* FIXME: user prepend and reverse list order (GList) */
 	*attendees = g_slist_append (*attendees, ca);

Modified: trunk/plugins/mail-to-task/mail-to-task.c
==============================================================================
--- trunk/plugins/mail-to-task/mail-to-task.c	(original)
+++ trunk/plugins/mail-to-task/mail-to-task.c	Thu Mar 26 11:28:49 2009
@@ -108,7 +108,15 @@
 				to_free = g_slist_prepend (to_free, temp);
 
 				ca->cn = name;
-				/* FIXME: missing many fields */
+				ca->cutype = ICAL_CUTYPE_INDIVIDUAL;
+				ca->status = ICAL_PARTSTAT_NEEDSACTION;
+				if (j == 2) {
+					/* BCC  */
+					ca->role = ICAL_ROLE_OPTPARTICIPANT;
+				} else {
+					/* all other */
+					ca->role = ICAL_ROLE_REQPARTICIPANT;
+				}
 
 				attendees = g_slist_append (attendees, ca);
 			}



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