]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: Make sure iconv state is reset between MIME parts.
authorTimo Sirainen <tss@iki.fi>
Sat, 16 May 2015 21:51:50 +0000 (00:51 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 16 May 2015 21:51:50 +0000 (00:51 +0300)
src/lib-mail/message-decoder.c

index 4c16526f4437e457bb74623c60d5800068b1d487..2cb8bb1b0edf60c9e10bbb190bafa5d786e1f2ca 100644 (file)
@@ -248,6 +248,7 @@ message_decode_body_init_charset(struct message_decoder_context *ctx,
        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;
        }