+2005-02-17 Parthasarathi Susarla <sparthasarathi@novell.com>
+
+ * camel-groupwise-store.c: (groupwise_get_folder):
+ * camel-groupwise-folder.c: (groupwise_refresh_info):
+ the variable which holds the UTC time is not static
+ anymore.
+
2005-02-10 Parthasarathi Susarla <sparthasarathi@novell.com>
* camel-groupwise-store.c:
GSList *slist = NULL, *sl ;
char *container_id = NULL ;
char *cache_file_name ;
- time_t mod_time = 0 ;
+ time_t mod_time = time (0) ;
char time_string[100] = {0} ;
const struct tm *tm ;
struct stat buf ;
gw_folder->need_refresh = TRUE ;
}
- if (!mod_time) {
- cache_file_name = g_strdup (folder->summary->summary_path) ;
- stat (cache_file_name, &buf) ;
- mod_time = buf.st_mtime ;
- g_free (cache_file_name) ;
- }
+ cache_file_name = g_strdup (folder->summary->summary_path) ;
+ stat (cache_file_name, &buf) ;
+ mod_time = buf.st_mtime ;
+ g_free (cache_file_name) ;
tm = gmtime (&mod_time) ;
strftime (time_string, 100, "%Y-%m-%dT%H:%M:%SZ", tm) ;
status_flags = 0;
item_status = e_gw_item_get_item_status (item);
- /*if (item_status & E_GW_ITEM_STAT_READ)
+ if (item_status & E_GW_ITEM_STAT_READ)
status_flags |= CAMEL_MESSAGE_SEEN;
- if (item_status & E_GW_ITEM_STAT_DELETED)
+ /*if (item_status & E_GW_ITEM_STAT_DELETED)
status_flags |= CAMEL_MESSAGE_DELETED;*/
if (item_status & E_GW_ITEM_STAT_REPLIED)
status_flags |= CAMEL_MESSAGE_ANSWERED;
summary_count = camel_folder_summary_count (folder->summary) ;
if(summary_count) {
char *cache_file_name ;
- time_t mod_time = 0 ;
+ time_t mod_time = time (0) ;
char time_string[100] = {0} ;
const struct tm *tm ;
struct stat buf;
- if (!mod_time) {
- cache_file_name = g_strdup (folder->summary->summary_path) ;
- printf ("%s %d\n", cache_file_name, stat (cache_file_name, &buf));
- mod_time = buf.st_mtime;
- }
+
+ cache_file_name = g_strdup (folder->summary->summary_path) ;
+ stat (cache_file_name, &buf) ;
+ g_free (cache_file_name) ;
+ mod_time = buf.st_mtime;
tm = gmtime (&mod_time);
strftime (time_string, 100, "%Y-%m-%dT%H:%M:%SZ", tm);
camel_operation_start (NULL, _("Fetching summary information for new messages"));
//camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Authentication failed"));
CAMEL_SERVICE_UNLOCK (gw_store, connect_lock) ;
camel_operation_end (NULL);
- g_free (cache_file_name) ;
g_free (container_id) ;
gw_store->current_folder = folder ;
camel_object_ref (folder) ;
//camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Authentication failed"));
CAMEL_SERVICE_UNLOCK (gw_store, connect_lock) ;
camel_operation_end (NULL);
- g_free (cache_file_name) ;
g_free (container_id) ;
gw_store->current_folder = folder ;
camel_object_ref (folder) ;