aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-03-26 19:28:49 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-03-26 19:28:49 +0800
commit4afefd78df8f8a93e778464cb37cf42c16c31ecd (patch)
treec52fc4f78f9a462c9f6d5914941c8d854f600e88 /plugins
parentb210ecf51713e0130fc97423586368da34b68e98 (diff)
downloadgsoc2013-evolution-4afefd78df8f8a93e778464cb37cf42c16c31ecd.tar
gsoc2013-evolution-4afefd78df8f8a93e778464cb37cf42c16c31ecd.tar.gz
gsoc2013-evolution-4afefd78df8f8a93e778464cb37cf42c16c31ecd.tar.bz2
gsoc2013-evolution-4afefd78df8f8a93e778464cb37cf42c16c31ecd.tar.lz
gsoc2013-evolution-4afefd78df8f8a93e778464cb37cf42c16c31ecd.tar.xz
gsoc2013-evolution-4afefd78df8f8a93e778464cb37cf42c16c31ecd.tar.zst
gsoc2013-evolution-4afefd78df8f8a93e778464cb37cf42c16c31ecd.zip
** Fix for bug #576696
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. svn path=/trunk/; revision=37477
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mail-to-meeting/ChangeLog6
-rw-r--r--plugins/mail-to-meeting/mail-to-meeting.c4
-rw-r--r--plugins/mail-to-task/ChangeLog6
-rw-r--r--plugins/mail-to-task/mail-to-task.c10
4 files changed, 24 insertions, 2 deletions
diff --git a/plugins/mail-to-meeting/ChangeLog b/plugins/mail-to-meeting/ChangeLog
index 31fbc638a8..b30a1eac71 100644
--- a/plugins/mail-to-meeting/ChangeLog
+++ b/plugins/mail-to-meeting/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-26 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #576696
+
+ * mail-to-meeting.c: (add_attendee_cb): Set mandatory properties.
+
2009-01-21 Milan Crha <mcrha@redhat.com>
* Makefile.am: Use also EVOLUTION_CALENDAR_CFLAGS.
diff --git a/plugins/mail-to-meeting/mail-to-meeting.c b/plugins/mail-to-meeting/mail-to-meeting.c
index b5702cdb6c..a23d4d7d4a 100644
--- a/plugins/mail-to-meeting/mail-to-meeting.c
+++ b/plugins/mail-to-meeting/mail-to-meeting.c
@@ -49,7 +49,9 @@ add_attendee_cb (gpointer key, gpointer value, gpointer user_data)
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);
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 <mcrha@redhat.com>
+
+ ** Fix for bug #576696
+
+ * mail-to-task.c: (set_attendees): Set mandatory properties.
+
2009-01-28 Tor Lillqvist <tml@novell.com>
* 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);
}