Mercurial > dovecot > core-2.2
changeset 17232:45e7980f6507
fts: Never put text/plain contents through fts-parsers.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 17 Apr 2014 10:27:43 +0200 |
parents | e4119adae01d |
children | 3db2ab503759 |
files | src/plugins/fts/fts-parser.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/fts/fts-parser.c Thu Apr 17 10:26:11 2014 +0200 +++ b/src/plugins/fts/fts-parser.c Thu Apr 17 10:27:43 2014 +0200 @@ -17,6 +17,12 @@ { unsigned int i; + if (strcmp(content_type, "text/plain") == 0) { + /* we probably don't want/need to allow parsers to handle + plaintext? */ + return NULL; + } + for (i = 0; i < N_ELEMENTS(parsers); i++) { *parser_r = parsers[i]->try_init(user, content_type, content_disposition);