evolution-exchange r1826 - in branches/gnome-2-24: . camel
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-exchange r1826 - in branches/gnome-2-24: . camel
- Date: Mon, 6 Oct 2008 10:35:14 +0000 (UTC)
Author: sragavan
Date: Mon Oct 6 10:35:14 2008
New Revision: 1826
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1826&view=rev
Log:
2008-10-06 Srinivasa Ragavan <sragavan novell com>
* camel/camel-exchange-folder.c (class_init),
(count_by_expression): Adapt to new camel ABI
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/camel/camel-exchange-folder.c
Modified: branches/gnome-2-24/camel/camel-exchange-folder.c
==============================================================================
--- branches/gnome-2-24/camel/camel-exchange-folder.c (original)
+++ branches/gnome-2-24/camel/camel-exchange-folder.c Mon Oct 6 10:35:14 2008
@@ -67,6 +67,10 @@
static GPtrArray *search_by_expression (CamelFolder *folder,
const char *exp,
CamelException *ex);
+static guint32 count_by_expression (CamelFolder *folder,
+ const char *exp,
+ CamelException *ex);
+
static GPtrArray *search_by_uids (CamelFolder *folder,
const char *expression,
GPtrArray *uids,
@@ -99,6 +103,8 @@
camel_folder_class->append_message = append_message;
camel_folder_class->get_message = get_message;
camel_folder_class->search_by_expression = search_by_expression;
+ camel_folder_class->count_by_expression = count_by_expression;
+
camel_folder_class->search_by_uids = search_by_uids;
/* use the default function for the search_free */
/* camel_folder_class->search_free = search_free; */
@@ -489,6 +495,23 @@
return matches;
}
+static guint32
+count_by_expression (CamelFolder *folder, const char *expression,
+ CamelException *ex)
+{
+ CamelFolderSearch *search;
+ guint32 matches;
+
+ search = camel_exchange_search_new ();
+ camel_folder_search_set_folder (search, folder);
+ matches = camel_folder_search_count (search, expression, ex);
+
+ camel_object_unref (CAMEL_OBJECT (search));
+
+ return matches;
+}
+
+
static GPtrArray *
search_by_uids (CamelFolder *folder, const char *expression,
GPtrArray *uids, CamelException *ex)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]