[dovecot-cvs] dovecot/src/lib-storage mail-search.c, 1.21, 1.22 mail-search.h, 1.15, 1.16
tss at dovecot.org
tss at dovecot.org
Wed Dec 20 21:26:38 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv1604/lib-storage
Modified Files:
mail-search.c mail-search.h
Log Message:
Added support for X-BODY-FAST and X-TEXT-FAST SEARCH arguments. FTS plugin
now allows loading two backends: exact and fast. Fast backend (Lucene) can
be used to optimize only those searches, while exact backend (Squat) can be
used to optimize normal BODY and TEXT searches as well.
Index: mail-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-search.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- mail-search.c 15 Dec 2006 16:55:43 -0000 1.21
+++ mail-search.c 20 Dec 2006 21:26:36 -0000 1.22
@@ -141,9 +141,11 @@
sizeof(const char *));
break;
case SEARCH_BODY:
+ case SEARCH_BODY_FAST:
*have_body = TRUE;
break;
case SEARCH_TEXT:
+ case SEARCH_TEXT_FAST:
*have_text = TRUE;
*have_body = TRUE;
break;
Index: mail-search.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-search.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- mail-search.h 15 Dec 2006 18:11:02 -0000 1.15
+++ mail-search.h 20 Dec 2006 21:26:36 -0000 1.16
@@ -36,7 +36,9 @@
/* body */
SEARCH_BODY,
- SEARCH_TEXT
+ SEARCH_TEXT,
+ SEARCH_BODY_FAST,
+ SEARCH_TEXT_FAST
};
struct mail_search_seqset {
More information about the dovecot-cvs
mailing list