From 4afefd78df8f8a93e778464cb37cf42c16c31ecd Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 26 Mar 2009 11:28:49 +0000 Subject: ** Fix for bug #576696 2009-03-26 Milan Crha ** 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. svn path=/trunk/; revision=37477 --- plugins/mail-to-task/ChangeLog | 6 ++++++ plugins/mail-to-task/mail-to-task.c | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'plugins/mail-to-task') diff --git a/plugins/mail-to-task/ChangeLog b/plugins/mail-to-task/ChangeLog index f3cfe042c6..978fe50814 100644 --- a/plugins/mail-to-task/ChangeLog +++ b/plugins/mail-to-task/ChangeLog @@ -1,3 +1,9 @@ +2009-03-26 Milan Crha + + ** Fix for bug #576696 + + * mail-to-task.c: (set_attendees): Set mandatory properties. + 2009-01-28 Tor Lillqvist * Makefile.am: Remove a trailing space after the line continuation diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 2717bb29be..8a16b92dda 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -108,7 +108,15 @@ set_attendees (ECalComponent *comp, CamelMimeMessage *message) 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); } -- cgit v1.2.3