dovecot-2.2: lib-mail: Make sure iconv state is reset between MI...

dovecot at dovecot.org dovecot at dovecot.org
Sat May 16 21:53:53 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/9809f68aaa36
changeset: 18721:9809f68aaa36
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 00:51:50 2015 +0300
description:
lib-mail: Make sure iconv state is reset between MIME parts.

diffstat:

 src/lib-mail/message-decoder.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 309863bb69cc -r 9809f68aaa36 src/lib-mail/message-decoder.c
--- a/src/lib-mail/message-decoder.c	Sat May 16 18:47:20 2015 +0300
+++ b/src/lib-mail/message-decoder.c	Sun May 17 00:51:50 2015 +0300
@@ -248,6 +248,7 @@
 	if (ctx->charset_trans != NULL && ctx->content_charset != NULL &&
 	    strcasecmp(ctx->content_charset, ctx->charset_trans_charset) == 0) {
 		/* already have the correct translation selected */
+		charset_to_utf8_reset(ctx->charset_trans);
 		return;
 	}
 


More information about the dovecot-cvs mailing list