dovecot-2.1: fts: Don't send binary MIME parts to backend throug...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Feb 22 10:17:45 EET 2013
details: http://hg.dovecot.org/dovecot-2.1/rev/b0e68c53771e
changeset: 14915:b0e68c53771e
user: Timo Sirainen <tss at iki.fi>
date: Fri Feb 22 10:17:14 2013 +0200
description:
fts: Don't send binary MIME parts to backend through UTF8 text conversion.
Based on patch by Mike Abbott / Apple.
diffstat:
src/plugins/fts/fts-build-mail.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r b91e1b94af21 -r b0e68c53771e src/plugins/fts/fts-build-mail.c
--- a/src/plugins/fts/fts-build-mail.c Fri Feb 22 10:01:06 2013 +0200
+++ b/src/plugins/fts/fts-build-mail.c Fri Feb 22 10:17:14 2013 +0200
@@ -170,6 +170,7 @@
strncmp(content_type, "message/", 8) == 0) {
/* text body parts */
key.type = FTS_BACKEND_BUILD_KEY_BODY_PART;
+ ctx->body_parser = fts_parser_text_init();
} else {
/* possibly binary */
if ((ctx->update_ctx->backend->flags &
@@ -178,8 +179,6 @@
*binary_body_r = TRUE;
key.type = FTS_BACKEND_BUILD_KEY_BODY_PART_BINARY;
}
- if (ctx->body_parser == NULL)
- ctx->body_parser = fts_parser_text_init();
key.body_content_type = content_type;
key.body_content_disposition = ctx->content_disposition;
return fts_backend_update_set_build_key(ctx->update_ctx, &key);
More information about the dovecot-cvs
mailing list