]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-fts: Improved stopword file reading.
authorTeemu Huovila <teemu.huovila@dovecot.fi>
Wed, 1 Jun 2016 09:24:57 +0000 (12:24 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 14 Jun 2016 09:00:59 +0000 (12:00 +0300)
commitf6e14400c10dfc148775623c1547c4e6246d397e
tree57fbf489a515bfb1f9acb4406166cc29f3e55512
parent77c9af3438e7cc07379063a475e9e16c38a556f3
lib-fts: Improved stopword file reading.

The reading tries to be a little bit stricter now. Only stopwords at the
start of a new line are accepted now. Changed fi stopwords accordingly.
Also removed superfluous stack allocation in parsing.
src/lib-fts/Makefile.am
src/lib-fts/fts-filter-stopwords.c
src/lib-fts/stopwords/stopwords_fi.txt
src/lib-fts/stopwords/stopwords_malformed.txt [new file with mode: 0644]
src/lib-fts/test-fts-filter.c