dovecot: Fixed squat-test
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 3 22:44:13 EET 2008
details: http://hg.dovecot.org/dovecot/rev/d7d885b6dd46
changeset: 7209:d7d885b6dd46
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 03 22:42:46 2008 +0200
description:
Fixed squat-test
diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
src/plugins/fts-squat/squat-test.c | 8 +++++---
diffs (25 lines):
diff -r eec99cefd3bd -r d7d885b6dd46 src/plugins/fts-squat/squat-test.c
--- a/src/plugins/fts-squat/squat-test.c Sun Feb 03 22:41:51 2008 +0200
+++ b/src/plugins/fts-squat/squat-test.c Sun Feb 03 22:42:46 2008 +0200
@@ -94,8 +94,6 @@ int main(int argc ATTR_UNUSED, char *arg
if (mime_header) {
if (*line == '\0') {
- if (data_header)
- seq++;
data_header = FALSE;
mime_header = FALSE;
continue;
@@ -112,7 +110,11 @@ int main(int argc ATTR_UNUSED, char *arg
if (*line == '\0')
continue;
- index_type = data_header ? SQUAT_INDEX_TYPE_HEADER :
+ /* we're actually indexing here headers as bodies and bodies
+ as headers. it doesn't really matter in this test, and
+ fixing it would require storing headers temporarily
+ elsewhere and index them only after the body */
+ index_type = !data_header ? SQUAT_INDEX_TYPE_HEADER :
SQUAT_INDEX_TYPE_BODY;
buffer_set_used_size(valid, 0);
More information about the dovecot-cvs
mailing list