rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | LICENSE

commit 7a6741a86ca4c8e5dde64862a9db6bb7a2e0113a
parent 389e91d29c419a97a61c956d88e8c98918842057
Author: Christoph Lohmann <20h@r-36.net>
Date:   Thu, 26 Jul 2012 12:10:43 +0200

This is to avoid the double encoding of UTF-8.

Diffstat:
mime.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mime.c b/mime.c @@ -302,7 +302,7 @@ mime_decodeheaderdefault(char *value, char *charset) ret = mime_decodeheader(value); if (ret != NULL) { - if (strcasecmp(charset, "utf-8")) { + if (strcasecmp(charset, "utf-8") && !strcmp(value, ret)) { rdec = mime_iconv(ret, charset, "UTF-8"); if (rdec != NULL) { free(ret);