Fixes bug #166265 on bnc
authorParthasarathi Susarla <sparthasarathi@novell.com>
Mon, 12 Jun 2006 09:20:04 +0000 (09:20 +0000)
committerParthasarathi Susarla <saps@src.gnome.org>
Mon, 12 Jun 2006 09:20:04 +0000 (09:20 +0000)
2006-06-12  Parthasarathi Susarla <sparthasarathi@novell.com>

Fixes bug #166265 on bnc

* camel-groupwise-folder.c: call purgeRequest when
deleting on Trash folder

camel/providers/groupwise/ChangeLog
camel/providers/groupwise/camel-groupwise-folder.c

index d7ed984..010e59e 100644 (file)
@@ -1,3 +1,10 @@
+2006-06-12  Parthasarathi Susarla <sparthasarathi@novell.com>
+       
+       Fixes bug #166265 on bnc
+       
+       * camel-groupwise-folder.c: call purgeRequest when
+       deleting on Trash folder
+
 2006-06-09  Sankar P  <psankar@novell.com>
 
        * camel-groupwise-folder.c:
index 430fb7b..0daa4ae 100644 (file)
@@ -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;