/* * Copyright (C) 2000 Helix Code Inc. * * Authors: Michael Zucchi * * 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 Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef _CAMEL_FOLDER_SEARCH_H #define _CAMEL_FOLDER_SEARCH_H #include #include #include #include #include #define CAMEL_FOLDER_SEARCH(obj) GTK_CHECK_CAST (obj, camel_folder_search_get_type (), CamelFolderSearch) #define CAMEL_FOLDER_SEARCH_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, camel_folder_search_get_type (), CamelFolderSearchClass) #define IS_CAMEL_FOLDER_SEARCH(obj) GTK_CHECK_TYPE (obj, camel_folder_search_get_type ()) typedef struct _CamelFolderSearchClass CamelFolderSearchClass; struct _CamelFolderSearch { CamelObject parent; struct _CamelFolderSearchPrivate *priv; ESExp *sexp; /* s-exp evaluator */ char *last_search; /* last searched expression */ /* these are only valid during the search, and are reset afterwards */ CamelFolder *folder; /* folder for current search */ GPtrArray *summary; /* summary array for current search */ CamelMessageInfo *current; /* current message info, when searching one by one */ ibex *body_index; }; struct _CamelFolderSearchClass { CamelObjectClass parent_class; /* general bool/comparison options, usually these wont need to be set, unless it is compiling into another language */ ESExpResult * (*and)(struct _ESExp *f, int argc, struct _ESExpTerm **argv, CamelFolderSearch *s); ESExpResult * (*or)(struct _ESExp *f, int argc, struct _ESExpTerm **argv, CamelFolderSearch *s); ESExpResult * (*not)(struct _ESExp *f, int argc, struct _ESExpTerm **argv, CamelFolderSearch *s); ESExpResult * (*lt)(struct _ESExp *f, int argc, struct _ESExpTerm **argv, CamelFolderSearch *s); ESExpResult * (*gt)(struct _ESExp *f, int argc, struct _ESExpTerm **argv, CamelFolderSearch *s); ESExpResult * (*eq)(struct _ESExp *f, int argc, struct _ESExpTerm **argv, CamelFolderSearch *s); /* search options */ /* (match-all [boolean expression]) Apply match to all messages */ ESExpResult * (*match_all)(struct _ESExp *f, int argc, struct _ESExpTerm **argv, CamelFolderSearch *s); /* (body-contains "string1" "string2" ...) Returns a list of matches, or true if in single-message mode */ ESExpResult * (*body_contains)(struct _ESExp *f, int argc, struct _ESExpResult **argv, CamelFolderSearch *s); /* (header-contains "headername" "string1" ...) List of matches, or true if in single-message mode */ ESExpResult * (*header_contains)(struct _ESExp *f, int argc, struct _ESExpResult **argv, CamelFolderSearch *s); /* (user-flag "flagname" "flagname" ...) If one of user-flag set */ ESExpResult * (*user_flag)(struct _ESExp *f, int argc, struct _ESExpResult **argv, CamelFolderSearch *s); }; guint camel_folder_search_get_type (void); CamelFolderSearch *camel_folder_search_new (void); void camel_folder_search_construct (CamelFolderSearch *search); void camel_folder_search_set_folder(CamelFolderSearch *search, CamelFolder *folder); void camel_folder_search_set_summary(CamelFolderSearch *search, GPtrArray *summary); void camel_folder_search_set_body_index(CamelFolderSearch *search, ibex *index); GPtrArray *camel_folder_search_execute_expression(CamelFolderSearch *search, const char *expr, CamelException *ex); #endif /* ! _CAMEL_FOLDER_SEARCH_H */ '>gnome-3.26 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Add LICENSEamdmi32016-08-201-0/+5
* Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.mat2016-04-011-1/+1
* Install net/libnet headers and libraries back in the location where othertijl2016-03-202-36/+2
* Cleanup plistantoine2014-11-221-3/+0
* - Convert net/libnet to USES=libtool and bump dependent portstijl2014-07-141-1/+1
* Remove NOPORTDOCS and NOPORTEXAMPLES.adamw2014-07-051-2/+2
* Stagify, new syntax of LIB_DEPENDS.vanilla2014-06-231-7/+6
* - Convert gmake,bzip2 to USESmiwi2014-05-291-1/+1
* Fix properties on pkg-plistbapt2014-01-221-1/+0
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-2/+1
* - update libnet to 1.1.6dinoex2013-02-191-2/+2
* - Reassign to the heap at maintainer's requesttabthorpe2012-10-161-5/+2
* - update png to 1.5.10dinoex2012-06-01class='deletions'>-12/+13
* With portmgr hat on, reset maintainership of knu's ports since he haslinimon2005-11-111-1/+1
* - Support bdb43pav2005-09-11