[evolution-ews] Implement CamelFolder::get_message_cached()



commit 5f3b885d83bdbf01c1d53aa5b2a4f86e599b5144
Author: Milan Crha <mcrha redhat com>
Date:   Mon Aug 20 21:54:32 2012 +0200

    Implement CamelFolder::get_message_cached()

 src/camel/camel-ews-folder.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index 7c656af..fa5585e 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -587,6 +587,14 @@ ews_folder_get_message_sync (CamelFolder *folder,
 	return message;
 }
 
+static CamelMimeMessage *
+ews_folder_get_message_cached (CamelFolder *folder,
+			       const gchar *message_uid,
+			       GCancellable *cancellable)
+{
+	return camel_ews_folder_get_message_from_cache ((CamelEwsFolder *) folder, message_uid, cancellable, NULL);
+}
+
 static GPtrArray *
 ews_folder_search_by_expression (CamelFolder *folder,
                                  const gchar *expression,
@@ -1824,6 +1832,7 @@ camel_ews_folder_class_init (CamelEwsFolderClass *class)
 
 	folder_class = CAMEL_FOLDER_CLASS (class);
 	folder_class->get_message_sync = ews_folder_get_message_sync;
+	folder_class->get_message_cached = ews_folder_get_message_cached;
 	folder_class->search_by_expression = ews_folder_search_by_expression;
 	folder_class->count_by_expression = ews_folder_count_by_expression;
 	folder_class->cmp_uids = ews_cmp_uids;



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