aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-search.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-22 03:50:09 +0800
committerDan Winship <danw@src.gnome.org>2000-12-22 03:50:09 +0800
commitb1ed87891b6d5df213ac2168572d46ee1924f9ff (patch)
tree2dde5702c0cf51c83ccaadc513f4d98ae1767f9e /camel/providers/imap/camel-imap-search.h
parentfbf92961aa7fd925a7283ccd134739363d3cb9b9 (diff)
downloadgsoc2013-evolution-b1ed87891b6d5df213ac2168572d46ee1924f9ff.tar.gz
gsoc2013-evolution-b1ed87891b6d5df213ac2168572d46ee1924f9ff.tar.zst
gsoc2013-evolution-b1ed87891b6d5df213ac2168572d46ee1924f9ff.zip
New CamelFolderSearch subclass that just reimplements body_contains (using
* providers/imap/camel-imap-search.c: New CamelFolderSearch subclass that just reimplements body_contains (using the IMAP SEARCH command). All other kinds of searching are done against the local summary. * providers/imap/camel-imap-folder.c (imap_search_by_expression): Use a CamelImapSearch to do searching. * providers/imap/camel-imap-utils.c (imap_translate_sexp, etc): No longer needed. * camel-folder-search.h: Add missing CAMEL_FOLDER_SEARCH_TYPE #define svn path=/trunk/; revision=7119
Diffstat (limited to 'camel/providers/imap/camel-imap-search.h')
-rw-r--r--camel/providers/imap/camel-imap-search.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/camel/providers/imap/camel-imap-search.h b/camel/providers/imap/camel-imap-search.h
new file mode 100644
index 0000000000..c588459577
--- /dev/null
+++ b/camel/providers/imap/camel-imap-search.h
@@ -0,0 +1,52 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* camel-imap-search.h: IMAP folder search */
+
+/*
+ * Authors:
+ * Dan Winship <danw@helixcode.com>
+ *
+ * Copyright 2000 Helix Code, Inc. (www.helixcode.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+#ifndef _CAMEL_IMAP_SEARCH_H
+#define _CAMEL_IMAP_SEARCH_H
+
+#include <camel/camel-folder-search.h>
+
+#define CAMEL_IMAP_SEARCH_TYPE (camel_imap_search_get_type ())
+#define CAMEL_IMAP_SEARCH(obj) CAMEL_CHECK_CAST (obj, camel_imap_search_get_type (), CamelImapSearch)
+#define CAMEL_IMAP_SEARCH_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_imap_search_get_type (), CamelImapSearchClass)
+#define CAMEL_IS_IMAP_SEARCH(obj) CAMEL_CHECK_TYPE (obj, camel_imap_search_get_type ())
+
+typedef struct _CamelImapSearchClass CamelImapSearchClass;
+typedef struct _CamelImapSearch CamelImapSearch;
+
+struct _CamelImapSearch {
+ CamelFolderSearch parent;
+
+};
+
+struct _CamelImapSearchClass {
+ CamelFolderSearchClass parent_class;
+
+};
+
+guint camel_imap_search_get_type (void);
+CamelFolderSearch *camel_imap_search_new (void);
+
+#endif /* ! _CAMEL_IMAP_SEARCH_H */