[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


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> */



More information about the dovecot-cvs mailing list