[dovecot-cvs] dovecot/src/plugins/fts fts-storage.c,1.4,1.5

cras at dovecot.org cras at dovecot.org
Mon Sep 18 02:20:32 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/fts
In directory talvi:/tmp/cvs-serv22012

Modified Files:
	fts-storage.c 
Log Message:
Fix



Index: fts-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts/fts-storage.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- fts-storage.c	17 Sep 2006 23:07:55 -0000	1.4
+++ fts-storage.c	17 Sep 2006 23:20:30 -0000	1.5
@@ -330,7 +330,12 @@
 			range[fctx->result_pos].seq1 = ctx->seq+1;
 		else {
 			ctx->seq = range[fctx->result_pos].seq1 - 1;
-			range[fctx->result_pos].seq1++;
+
+			if (fctx->result_pos < count &&
+			    ctx->seq + 1 == range[fctx->result_pos].seq2)
+				fctx->result_pos++;
+			else
+				range[fctx->result_pos].seq1++;
 		}
 
 		wanted_seq = ctx->seq + 1;



More information about the dovecot-cvs mailing list