evolution-exchange r1853 - in trunk: . camel



Author: pvanhoof
Date: Thu Jan  8 18:43:06 2009
New Revision: 1853
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1853&view=rev

Log:
2009-01-08  Philip Van Hoof  <philip codeminded be>

	* camel/camel-exchange-folder.c: Bugfix for Bug #566279. Introduces a 
	new API in Camel needed for implementing EPlugin of Bug #565091



Modified:
   trunk/ChangeLog
   trunk/camel/camel-exchange-folder.c

Modified: trunk/camel/camel-exchange-folder.c
==============================================================================
--- trunk/camel/camel-exchange-folder.c	(original)
+++ trunk/camel/camel-exchange-folder.c	Thu Jan  8 18:43:06 2009
@@ -85,6 +85,7 @@
 					      CamelException *ex);
 static void refresh_info (CamelFolder *folder, CamelException *ex);
 static void exchange_sync (CamelFolder *folder, gboolean expunge, CamelException *ex);
+static char* get_filename (CamelFolder *folder, const char *uid, CamelException *ex);
 
 static void
 class_init (CamelFolderClass *camel_folder_class)
@@ -104,6 +105,7 @@
 	camel_folder_class->transfer_messages_to = transfer_messages_to;
 	camel_folder_class->refresh_info = refresh_info;
 	camel_folder_class->sync = exchange_sync;
+	camel_folder_class->get_filename = get_filename;
 }
 
 #define CAMEL_EXCHANGE_SERVER_FLAGS \
@@ -159,6 +161,7 @@
 	return camel_exchange_folder_type;
 }
 
+
 static void
 refresh_info (CamelFolder *folder, CamelException *ex)
 {
@@ -361,6 +364,14 @@
 	}
 }
 
+static char*
+get_filename (CamelFolder *folder, const char *uid, CamelException *ex)
+{
+	CamelExchangeFolder *exch = CAMEL_EXCHANGE_FOLDER (folder);
+
+	return camel_data_cache_get_filename (exch->cache, "cache", uid, NULL);
+}
+
 static GByteArray *
 get_message_data (CamelFolder *folder, const char *uid, CamelException *ex)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]