mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 36faf7f1146d14e292edd03ee1edf139068e2f53
parent dc20c8248b29f6837aee222a32bb5eaef809a337
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Thu,  6 Apr 2017 22:55:00 +0200

rfc2047: blaze822_decode_rfc2047: ignore RFC 2231 language tag

Diffstat:
rfc2047.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/rfc2047.c b/rfc2047.c @@ -168,6 +168,9 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc) goto nocode; free(srcenc); srcenc = strdup(s); + char *lang = strchr(srcenc, '*'); + if (lang) + *lang = 0; // kill RFC2231 language tag if (!srcenc) goto nocode; if (ic != (iconv_t)-1)