** see bug 300797
authorParthasarathi Susarla <sparthasarathi@novell.com>
Wed, 10 Aug 2005 10:44:52 +0000 (10:44 +0000)
committerParthasarathi Susarla <saps@src.gnome.org>
Wed, 10 Aug 2005 10:44:52 +0000 (10:44 +0000)
2005-08-10  Parthasarathi Susarla <sparthasarathi@novell.com>

** see bug 300797

* camel-groupwise-folde.c: (groupwise_refresh_folder):
handle an error.

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

index 5b60311..1aa71de 100644 (file)
@@ -1,3 +1,10 @@
+2005-08-10  Parthasarathi Susarla <sparthasarathi@novell.com>
+       
+       ** see bug 300797
+       
+       * camel-groupwise-folde.c: (groupwise_refresh_folder):
+       handle an error. 
+
 2005-08-09  Parthasarathi Susarla <sparthasarathi@novell.com>
        
        ** see bug #312857
index 1f47096..56c1ec2 100644 (file)
@@ -794,7 +794,11 @@ groupwise_refresh_folder(CamelFolder *folder, CamelException *ex)
                g_print ("get_items:%s\n", folder->full_name);
                status = e_gw_connection_get_items (cnc, container_id, "recipient distribution created attachments subject status size", NULL, &list);
                if (status != E_GW_CONNECTION_STATUS_OK) {
-                       camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Authentication failed"));
+                       if (status ==E_GW_CONNECTION_OTHER) {
+                               g_warning ("Trash full....Empty Trash!!!!\n");
+                               /*groupwise_expunge (folder, ex);*/
+                       } else
+                               camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Authentication failed"));
                        goto end1;
                }
                if (!list || !g_list_length(list)) {
index c84c5ea..eb2c493 100644 (file)
@@ -951,7 +951,7 @@ groupwise_rename_folder(CamelStore *store,
                camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot rename GroupWise folders in offline mode."));
                return;
        }
-       CAMEL_SERVICE_LOCK (store, connect_lock);
+       CAMEL_SERVICE_LOCK (groupwise_store, connect_lock);
        
        container_id = camel_groupwise_store_container_id_lookup (groupwise_store, old_name);
        temp_new = strrchr (new_name, '/');