From: Sankar P Date: Fri, 9 Feb 2007 08:46:05 +0000 (+0000) Subject: Deletes all instances of a recurrence appointment as soon as the X-Git-Tag: upstream/3.7.4~5886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a99c5731d9e503d9170bf4d059e29ac15a2a916;p=platform%2Fupstream%2Fevolution-data-server.git Deletes all instances of a recurrence appointment as soon as the 2007-02-09 Sankar P * camel-groupwise-folder.c: (gw_update_cache), (gw_update_summary): Deletes all instances of a recurrence appointment as soon as the invitation is accepted/declined adn applied-to-all. Fixes #312301 svn path=/trunk/; revision=7604 --- diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog index 604c7b7..a624401 100644 --- a/camel/providers/groupwise/ChangeLog +++ b/camel/providers/groupwise/ChangeLog @@ -1,3 +1,10 @@ +2007-02-09 Sankar P + + * camel-groupwise-folder.c: (gw_update_cache), (gw_update_summary): + Deletes all instances of a recurrence appointment as soon as the + invitation is accepted/declined adn applied-to-all. + Fixes #312301 + 2006-12-07 Harish Krishnaswamy * camel-groupwise-store.c: (camel_groupwise_store_class_init): diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c index 66f714c..44b63b0 100644 --- a/camel/providers/groupwise/camel-groupwise-folder.c +++ b/camel/providers/groupwise/camel-groupwise-folder.c @@ -1217,6 +1217,8 @@ gw_update_cache (CamelFolder *folder, GList *list, CamelException *ex, gboolean CamelStream *cache_stream, *t_cache_stream; CamelMimeMessage *mail_msg = NULL; gboolean is_sent_folder = FALSE; + const char *recurrence_key = NULL; + int rk; exists = FALSE; @@ -1228,7 +1230,7 @@ gw_update_cache (CamelFolder *folder, GList *list, CamelException *ex, gboolean camel_operation_progress (NULL, (100*i)/total_items); - status = e_gw_connection_get_item (cnc, container_id, id, "peek default distribution recipient message attachments subject notification created recipientStatus status hasAttachment size", &item); + status = e_gw_connection_get_item (cnc, container_id, id, "peek default distribution recipient message attachments subject notification created recipientStatus status hasAttachment size recurrenceKey", &item); if (status != E_GW_CONNECTION_STATUS_OK) { i++; continue; @@ -1254,9 +1256,15 @@ gw_update_cache (CamelFolder *folder, GList *list, CamelException *ex, gboolean mi = (CamelGroupwiseMessageInfo *)camel_message_info_new (folder->summary); if (mi->info.content == NULL) { mi->info.content = camel_folder_summary_content_info_new (folder->summary); - mi->info.content->type = camel_content_type_new ("multipart", "mixed"); + mi->info.content->type = camel_content_type_new ("multipart", "mixed"); } } + + rk = e_gw_item_get_recurrence_key (item); + if (rk > 0) { + recurrence_key = g_strdup_printf("%d", rk); + camel_message_info_set_user_tag ((CamelMessageInfo*)mi, "recurrence-key", recurrence_key); + } /*all items in the Junk Mail folder should have this flag set*/ if (is_junk) @@ -1444,6 +1452,8 @@ gw_update_summary ( CamelFolder *folder, GList *list,CamelException *ex) const char *id; GSList *recp_list = NULL; status_flags = 0; + const char *recurrence_key = NULL; + int rk; id = e_gw_item_get_id (item); @@ -1464,6 +1474,12 @@ gw_update_summary ( CamelFolder *folder, GList *list,CamelException *ex) mi->info.content->type = camel_content_type_new ("multipart", "mixed"); } } + + rk = e_gw_item_get_recurrence_key (item); + if (rk > 0) { + recurrence_key = g_strdup_printf("%d", rk); + camel_message_info_set_user_tag ((CamelMessageInfo*)mi, "recurrence-key", recurrence_key); + } /*all items in the Junk Mail folder should have this flag set*/ if (is_junk)