1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Authors: Jeffrey Stedfast <fejj@ximian.com>
4 * Michael Zucchi <NotZed@Ximian.com>
6 * Copyright 2000 Ximian, Inc. (www.ximian.com)
7 * Copyright 2001 Ximian Inc. (www.ximian.com)
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of version 2 of the GNU Lesser General Public
11 * License as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this program; if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
25 #ifndef CAMEL_FILTER_SEARCH_H
26 #define CAMEL_FILTER_SEARCH_H
29 #include <camel/camel-mime-message.h>
30 #include <camel/camel-folder-summary.h>
35 CAMEL_SEARCH_ERROR = -1,
36 CAMEL_SEARCH_NOMATCH = 0,
37 CAMEL_SEARCH_MATCHED = 1,
40 typedef CamelMimeMessage * (*CamelFilterSearchGetMessageFunc) (void *data, CamelException *ex);
42 int camel_filter_search_match (CamelSession *session,
43 CamelFilterSearchGetMessageFunc get_message, void *data,
44 CamelMessageInfo *info, const char *source,
45 const char *expression, CamelException *ex);
49 #endif /* ! CAMEL_FILTER_SEARCH_H */