[evolution-data-server/email-factory] Fix case comparison



commit 66d20746fa038aee0b587d466c568a9429ac1871
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Wed May 11 16:17:47 2011 +0530

    Fix case comparison

 mail/daemon/e-mail-data-folder.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mail/daemon/e-mail-data-folder.c b/mail/daemon/e-mail-data-folder.c
index b99079a..7ae8e38 100644
--- a/mail/daemon/e-mail-data-folder.c
+++ b/mail/daemon/e-mail-data-folder.c
@@ -1171,9 +1171,9 @@ compare_uids (gconstpointer a,
 	info2 = (CamelMessageInfoBase *)camel_folder_get_message_info (folder, uid2);
 
 	if (data->sort == 'u') {
-		ret = g_strcmp0 (info1->subject, info2->subject);
+		ret = g_ascii_strcasecmp (info1->subject ? info1->subject : "", info2->subject ? info2->subject : "");
 	} else if (data->sort == 'e') {
-		ret = g_strcmp0 (info1->from, info2->from);
+		ret = g_ascii_strcasecmp (info1->from ? info1->from : "" , info2->from ? info2->from : "");
 	} else if (data->sort == 'r') {
 		ret = info1->date_received - info2->date_received;
 	}



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