tThis is to avoid the double encoding of UTF-8. - rohrpost - A commandline mail client to change the world as we see it.
 (HTM) git clone git://r-36.net/rohrpost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 7a6741a86ca4c8e5dde64862a9db6bb7a2e0113a
 (DIR) parent 389e91d29c419a97a61c956d88e8c98918842057
 (HTM) 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(-)
       ---
 (DIR) diff --git a/mime.c b/mime.c
       t@@ -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);