[dovecot-cvs] dovecot/src/imap imap-search.c,1.15,1.16
tss at dovecot.org
tss at dovecot.org
Wed Dec 20 21:26:38 UTC 2006
- Previous message: [dovecot-cvs] dovecot/src/imap client.c, 1.73, 1.74 client.h, 1.39, 1.40 cmd-uid.c, 1.8, 1.9 commands.c, 1.19, 1.20 commands.h, 1.21, 1.22
- Next message: [dovecot-cvs] dovecot/src/lib-storage mail-search.c, 1.21, 1.22 mail-search.h, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv1604/imap
Modified Files:
imap-search.c
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: imap-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-search.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- imap-search.c 13 Jan 2006 20:25:59 -0000 1.15
+++ imap-search.c 20 Dec 2006 21:26:36 -0000 1.16
@@ -367,6 +367,15 @@
return TRUE;
}
break;
+ case 'X':
+ if (strcmp(str, "X-BODY-FAST") == 0) {
+ /* <string> */
+ return ARG_NEW(SEARCH_BODY_FAST);
+ } else if (strcmp(str, "X-TEXT-FAST") == 0) {
+ /* <string> */
+ return ARG_NEW(SEARCH_TEXT_FAST);
+ }
+ break;
default:
if (*str == '*' || (*str >= '0' && *str <= '9')) {
/* <message-set> */
- Previous message: [dovecot-cvs] dovecot/src/imap client.c, 1.73, 1.74 client.h, 1.39, 1.40 cmd-uid.c, 1.8, 1.9 commands.c, 1.19, 1.20 commands.h, 1.21, 1.22
- Next message: [dovecot-cvs] dovecot/src/lib-storage mail-search.c, 1.21, 1.22 mail-search.h, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list