From c80cccff4c9531b8ccf2b8f7e54ad815fbc70462 Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Mon, 12 Jun 2006 09:20:04 +0000 Subject: Fixes bug #166265 on bnc 2006-06-12 Parthasarathi Susarla Fixes bug #166265 on bnc * camel-groupwise-folder.c: call purgeRequest when deleting on Trash folder --- camel/providers/groupwise/ChangeLog | 7 +++++++ camel/providers/groupwise/camel-groupwise-folder.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog index d7ed98449..010e59e02 100644 --- a/camel/providers/groupwise/ChangeLog +++ b/camel/providers/groupwise/ChangeLog @@ -1,3 +1,10 @@ +2006-06-12 Parthasarathi Susarla + + Fixes bug #166265 on bnc + + * camel-groupwise-folder.c: call purgeRequest when + deleting on Trash folder + 2006-06-09 Sankar P * camel-groupwise-folder.c: diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c index 430fb7b26..0daa4ae16 100644 --- a/camel/providers/groupwise/camel-groupwise-folder.c +++ b/camel/providers/groupwise/camel-groupwise-folder.c @@ -682,7 +682,11 @@ groupwise_sync (CamelFolder *folder, gboolean expunge, CamelException *ex) CAMEL_GROUPWISE_FOLDER_UNLOCK (folder, cache_lock); if (deleted_items) { CAMEL_SERVICE_LOCK (gw_store, connect_lock); - status = e_gw_connection_remove_items (cnc, container_id, deleted_items); + if (!strcmp (folder->full_name, "Trash")) { + status = e_gw_connection_purge_selected_items (cnc, deleted_items); + } else { + status = e_gw_connection_remove_items (cnc, container_id, deleted_items); + } CAMEL_SERVICE_UNLOCK (gw_store, connect_lock); if (status == E_GW_CONNECTION_STATUS_OK) { char *uid; -- cgit v1.2.1