1 #ifndef MODEST_SEARCH_H
2 #define MODEST_SEARCH_H
5 #include <tny-folder.h>
11 #ifdef MODEST_HAVE_OGS
12 #include <libogs/ogs-text-searcher.h>
18 MODEST_SEARCH_SUBJECT = (1 << 0),
19 MODEST_SEARCH_SENDER = (1 << 1),
20 MODEST_SEARCH_RECIPIENT = (1 << 2),
21 MODEST_SEARCH_SIZE = (1 << 3),
22 MODEST_SEARCH_BEFORE = (1 << 4),
23 MODEST_SEARCH_AFTER = (1 << 5),
24 MODEST_SEARCH_BODY = (1 << 6),
25 MODEST_SEARCH_USE_OGS = (1 << 7),
29 gchar *subject, *from, *recipient, *body;
32 ModestSearchFlags flags;
33 #ifdef MODEST_HAVE_OGS
35 OgsTextSearcher *text_searcher;
39 GList * modest_search (TnyFolder *folder, ModestSearch *search);