[evolution-mapi] Define its own compare function for UIDs.



commit ae23535d1b145848ae3fe38ddc73cce5bec6f7b1
Author: Milan Crha <mcrha redhat com>
Date:   Fri Apr 24 20:36:23 2009 +0200

    Define its own compare function for UIDs.
    
    	** Part of fix for bug #563954
---
 src/camel/ChangeLog           |    7 +++++++
 src/camel/camel-mapi-folder.c |   10 ++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/camel/ChangeLog b/src/camel/ChangeLog
index b98b6bd..18bf44d 100644
--- a/src/camel/ChangeLog
+++ b/src/camel/ChangeLog
@@ -1,3 +1,10 @@
+2009-04-24  Milan Crha  <mcrha redhat com>
+
+	** Part of fix for bug #563954
+
+	* camel-mapi-folder.c: (mapi_cmp_uids), (camel_mapi_folder_class_init):
+	Define its own compare function for UIDs.
+
 2009-03-26  Johnny Jacob  <jjohnny novell com>
 
 	* camel-mapi-folder.c (mapi_msg_set_recipient_list): Use data from
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index f94bce9..47c0f58 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1627,6 +1627,15 @@ mapi_folder_rename (CamelFolder *folder, const char *new)
 	((CamelFolderClass *)parent_class)->rename(folder, new);
 }
 
+static gint
+mapi_cmp_uids (CamelFolder *folder, const char *uid1, const char *uid2)
+{
+	g_return_val_if_fail (uid1 != NULL, 0);
+	g_return_val_if_fail (uid2 != NULL, 0);
+
+	return strcmp (uid1, uid2);
+}
+
 static void
 camel_mapi_folder_class_init (CamelMapiFolderClass *camel_mapi_folder_class)
 {
@@ -1639,6 +1648,7 @@ camel_mapi_folder_class_init (CamelMapiFolderClass *camel_mapi_folder_class)
 	camel_folder_class->get_message = mapi_folder_get_message;
  	camel_folder_class->rename = mapi_folder_rename;
 	camel_folder_class->search_by_expression = mapi_folder_search_by_expression;
+	camel_folder_class->cmp_uids = mapi_cmp_uids;
 /* 	camel_folder_class->get_message_info = mapi_get_message_info; */
 /* 	camel_folder_class->search_by_uids = mapi_folder_search_by_uids;  */
 	camel_folder_class->search_free = mapi_folder_search_free;



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