Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-filter-search.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Authors: Jeffrey Stedfast <fejj@ximian.com>
4  *           Michael Zucchi <NotZed@Ximian.com>
5  *
6  *  Copyright 2000 Ximian, Inc. (www.ximian.com)
7  *  Copyright 2001 Ximian Inc. (www.ximian.com)
8  *
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.
12  *
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.
17  *
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.
22  *
23  */
24
25 #ifndef CAMEL_FILTER_SEARCH_H
26 #define CAMEL_FILTER_SEARCH_H
27
28 #include <glib.h>
29 #include <camel/camel-mime-message.h>
30 #include <camel/camel-folder-summary.h>
31
32 G_BEGIN_DECLS
33
34 enum {
35         CAMEL_SEARCH_ERROR    = -1,
36         CAMEL_SEARCH_NOMATCH  =  0,
37         CAMEL_SEARCH_MATCHED  =  1,
38 };
39
40 typedef CamelMimeMessage * (*CamelFilterSearchGetMessageFunc) (void *data, CamelException *ex);
41
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);
46
47 G_END_DECLS
48
49 #endif /* ! CAMEL_FILTER_SEARCH_H */