diff src/plugins/fts-squat/squat-trie.c @ 6914:9c3f0e180751 HEAD

Index message's all headers (including MIME headers) after the body.
author Timo Sirainen <tss@iki.fi>
date Mon, 03 Dec 2007 15:06:27 +0200
parents b326327b1f10
children 97702c9c4111
line wrap: on
line diff
--- a/src/plugins/fts-squat/squat-trie.c	Mon Dec 03 14:47:45 2007 +0200
+++ b/src/plugins/fts-squat/squat-trie.c	Mon Dec 03 15:06:27 2007 +0200
@@ -788,7 +788,7 @@
 	bool multibyte_chars = FALSE;
 	int ret = 0;
 
-	uid = uid * 2 + (type == SQUAT_INDEX_TYPE_HEADER ? 0 : 1);
+	uid = uid * 2 + (type == SQUAT_INDEX_TYPE_HEADER ? 1 : 0);
 
 	t_push();
 	char_lengths = t_malloc(size);
@@ -1394,7 +1394,7 @@
 	}
 
 	/* we'll have to drop either header or body UIDs */
-	mask = (type & SQUAT_INDEX_TYPE_HEADER) != 0 ? 0 : 1;
+	mask = (type & SQUAT_INDEX_TYPE_HEADER) != 0 ? 1 : 0;
 	for (i = 0; i < count; i++) {
 		for (uid = src_range[i].seq1; uid <= src_range[i].seq2; uid++) {
 			if ((uid & 1) == mask)