add peek and status views to the creatCursorRequest initialise the status
authorParthasarathi Susarla <sparthasarathi@novell.com>
Thu, 10 Mar 2005 06:59:15 +0000 (06:59 +0000)
committerParthasarathi Susarla <saps@src.gnome.org>
Thu, 10 Mar 2005 06:59:15 +0000 (06:59 +0000)
2005-03-10  Parthasarathi Susarla <sparthasarathi@novell.com>

* camel-groupwise-store.c:
  (groupwise_get_folder): add peek and status views to
  the creatCursorRequest
* camel-groupwise-folder.c:
  (gw_update_summary): initialise the status flag
  variable.
  *** Fixes bug #73308

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

index 426ef09..183448f 100644 (file)
@@ -1,3 +1,13 @@
+2005-03-10  Parthasarathi Susarla <sparthasarathi@novell.com>
+       
+       * camel-groupwise-store.c:
+         (groupwise_get_folder): add peek and status views to 
+         the creatCursorRequest
+       * camel-groupwise-folder.c:
+         (gw_update_summary): initialise the status flag
+         variable.
+         *** Fixes bug #73308
+
 2005-03-09  Sankar P <psankar@novell.com>
 
        * camel-groupwise-utils.c:(camel_groupwise_util_item_from_message)
index 78e48ee..a9f182f 100644 (file)
@@ -654,7 +654,7 @@ groupwise_refresh_info(CamelFolder *folder, CamelException *ex)
        CAMEL_SERVICE_LOCK (gw_store, connect_lock);
        /* FIXME send the time stamp which the server sends */
        status = e_gw_connection_get_quick_messages (cnc, container_id,
-                                       "recipient distribution created attachments subject",
+                                       "peek recipient distribution created attachments subject status",
                                        &t_str, "New", NULL, NULL, -1, &slist) ;
        
        g_free (t_str), t_str = NULL;
@@ -673,7 +673,7 @@ groupwise_refresh_info(CamelFolder *folder, CamelException *ex)
        t_str = g_strdup (time_string);
        /* FIXME send the time stamp which the server sends */
        status = e_gw_connection_get_quick_messages (cnc, container_id,
-                               "recipient distribution created attachments subject",
+                               "peek recipient distribution created attachments subject status",
                                &t_str, "Modified", NULL, NULL, -1, &slist) ;
        g_free (t_str), t_str = NULL;
        if (status != E_GW_CONNECTION_STATUS_OK) {
@@ -728,6 +728,7 @@ gw_update_summary ( CamelFolder *folder, GList *item_list,CamelException *ex)
                char *date = NULL, *temp_date = NULL ;
                const char *id ;
                GSList *recp_list = NULL ;
+               status_flags = 0;
 
                id = e_gw_item_get_id (item) ;
                mi = (CamelGroupwiseMessageInfo *)camel_folder_summary_uid (folder->summary, id) ;
index f5bc045..8364d1c 100644 (file)
@@ -543,7 +543,6 @@ groupwise_get_folder (CamelStore *store, const char *folder_name, guint32 flags,
                tm = gmtime (&mod_time);
                strftime (time_string, 100, "%Y-%m-%dT%H:%M:%SZ", tm);
        }
-
        summary_count = camel_folder_summary_count (folder->summary) ;
        if(summary_count) {
                char  *t_str = NULL;
@@ -551,7 +550,7 @@ groupwise_get_folder (CamelStore *store, const char *folder_name, guint32 flags,
                t_str = g_strdup (time_string);
                /* FIXME send the time stamp which the server sends */
                status = e_gw_connection_get_quick_messages (priv->cnc, container_id,
-                               "recipient distribution attachments subject created",
+                               "peek recipient distribution attachments subject created status",
                                &t_str, "New", NULL, NULL, -1, &slist) ;
                if (status != E_GW_CONNECTION_STATUS_OK) {
                        //camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Authentication failed"));
@@ -579,7 +578,7 @@ groupwise_get_folder (CamelStore *store, const char *folder_name, guint32 flags,
                t_str = g_strdup (time_string);
                /* FIXME send the time stamp which the server sends */
                status = e_gw_connection_get_quick_messages (priv->cnc, container_id,
-                                       "recipient distribution attachments subject created",
+                                       "peek recipient distribution attachments subject created status",
                                        &t_str, "Modified", NULL, NULL, -1, &slist) ; 
                g_free (t_str), t_str = NULL;
                if (status != E_GW_CONNECTION_STATUS_OK) {
@@ -607,7 +606,7 @@ groupwise_get_folder (CamelStore *store, const char *folder_name, guint32 flags,
                g_mutex_lock (mutex) ;
 
                status = e_gw_connection_create_cursor (priv->cnc, container_id, 
-                               "attachments distribution created subject",
+                               "peek attachments distribution created subject status",
                                NULL,
                                &cursor) ;
                if (status != E_GW_CONNECTION_STATUS_OK) {
@@ -1181,7 +1180,7 @@ camel_groupwise_store_container_id_lookup (CamelGroupwiseStore *gw_store, const
 {
        CamelGroupwiseStorePrivate *priv = gw_store->priv ;
 
-       return g_hash_table_lookup (priv->name_hash,folder_name) ;
+       return g_hash_table_lookup (priv->name_hash, folder_name) ;
 }
 
 const char *