diff src/lib-mail/message-decoder.c @ 18721:9809f68aaa36

lib-mail: Make sure iconv state is reset between MIME parts.
author Timo Sirainen <tss@iki.fi>
date Sun, 17 May 2015 00:51:50 +0300
parents b10aebbb42df
children 0f22db71df7a
line wrap: on
line diff
--- 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;
 	}