From b1ed87891b6d5df213ac2168572d46ee1924f9ff Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 21 Dec 2000 19:50:09 +0000 Subject: 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 --- camel/providers/imap/camel-imap-search.h | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 camel/providers/imap/camel-imap-search.h (limited to 'camel/providers/imap/camel-imap-search.h') 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 + * + * 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 + +#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 */ -- cgit v1.2.3