diff options
-rw-r--r-- | plugins/mail-to-task/ChangeLog | 9 | ||||
-rw-r--r-- | plugins/mail-to-task/mail-to-task.c | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/plugins/mail-to-task/ChangeLog b/plugins/mail-to-task/ChangeLog index 800acff0e8..a23a678f4f 100644 --- a/plugins/mail-to-task/ChangeLog +++ b/plugins/mail-to-task/ChangeLog @@ -1,3 +1,12 @@ +2006-03-04 Chenthill Palanisamy <pchenthill@novell.com> + + Fixes #330974 + * mail-to-task.c: + (set_description): Check if the params are present, + before accessing the value. Fixes a crash. + (convert_to_task): Set the authentication function + while creating the ECal. + 2006-02-01 Chenthill Palanisamy <pchenthill@novell.com> * Makefile.am: Reverting the commit made by diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 65261ccf46..7290b1a2f1 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -92,7 +92,7 @@ set_description (ECalComponent *comp, CamelMimeMessage *message) camel_object_unref (mem); /* convert to UTF-8 string */ - if (str && content->mime_type->params->value) + if (str && content->mime_type->params && content->mime_type->params->value) { convert_str = g_convert (str, strlen (str), "UTF-8", content->mime_type->params->value, @@ -221,7 +221,7 @@ convert_to_task (GPtrArray *uid_array, struct _CamelFolder *folder) GThread *thread = NULL; GError *error = NULL; - client = e_cal_new (source, E_CAL_SOURCE_TYPE_TODO); + client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO); if (!client) { char *uri = e_source_get_uri (source); |