[evolution-patches] (groupwise provider) change in modification time
- From: Parthasarathi Susarla <sparthasarathi novell com>
- To: evolution-patches <evolution-patches ximian com>
- Subject: [evolution-patches] (groupwise provider) change in modification time
- Date: Wed, 16 Feb 2005 15:55:51 +0530
Hi,
this patch updates the modification time that is sent with each
getQuickMessage request.
thanks,
partha
Index: camel-groupwise-folder.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-folder.c,v
retrieving revision 1.24
diff -u -p -r1.24 camel-groupwise-folder.c
--- camel-groupwise-folder.c 10 Feb 2005 10:51:58 -0000 1.24
+++ camel-groupwise-folder.c 16 Feb 2005 10:18:01 -0000
@@ -598,6 +598,7 @@ groupwise_refresh_info(CamelFolder *fold
char *cache_file_name ;
static time_t mod_time = 0 ;
char time_string[100] = {0} ;
+ GTimeVal time_val ;
const struct tm *tm ;
struct stat buf ;
@@ -652,6 +653,8 @@ groupwise_refresh_info(CamelFolder *fold
CAMEL_SERVICE_UNLOCK (gw_store, connect_lock);
g_free (container_id) ;
+ g_get_current_time (&time_val);
+ mod_time = time_val.tv_sec;
return ;
}
Index: camel-groupwise-store.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-store.c,v
retrieving revision 1.29
diff -u -p -r1.29 camel-groupwise-store.c
--- camel-groupwise-store.c 10 Feb 2005 10:51:58 -0000 1.29
+++ camel-groupwise-store.c 16 Feb 2005 10:18:01 -0000
@@ -485,6 +485,7 @@ groupwise_get_folder (CamelStore *store,
GList *list = NULL ;
GSList *slist = NULL, *sl ;
gboolean done = FALSE ;
+ GTimeVal time_val ;
int count = 0, cursor, summary_count = 0 ;
storage_path = g_strdup_printf ("%s/folders", priv->storage_path);
@@ -569,6 +570,8 @@ groupwise_get_folder (CamelStore *store,
list = g_list_append (list, sl->data) ;
}
gw_update_summary (folder, list, ex) ;
+ g_get_current_time (&time_val);
+ mod_time = time_val.tv_sec;
camel_operation_end (NULL);
} else {
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/ChangeLog,v
retrieving revision 1.19
diff -u -p -r1.19 ChangeLog
--- ChangeLog 10 Feb 2005 10:51:58 -0000 1.19
+++ ChangeLog 16 Feb 2005 10:18:01 -0000
@@ -1,3 +1,9 @@
+2005-02-16 Parthasarathi Susarla <sparthasarathi novell com>A
+
+ * camel-groupwise-store.c (groupwise_get_folder):
+ * camel-groupwise-folder.c (groupwise_refresh_info):
+ changing the modified time to the current time
+
2005-02-10 Parthasarathi Susarla <sparthasarathi novell com>
* camel-groupwise-store.c:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]