[PATCH] Normalize Content-Transfer-Encoding

Guido Berhoerster <[email protected]> Sat, 25 Jul 2015 15:42:59 +0200
Newsgroups gmane.network.slrn.user
Message-ID <20150725134259.GA21857@hal>
Normalize Content-Transfer-Encoding because there are MUAs and News
clients using uppercase.
---
 macros/mime.sl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/macros/mime.sl b/macros/mime.sl
index 527e6a0..24902cd 100644
--- a/macros/mime.sl
+++ b/macros/mime.sl
@@ -219,6 +219,7 @@ private define parse_mime (art)
    node.message = body;
 
    variable encoding = get_header_key (header, "Content-Transfer-Encoding", 1);
+   encoding = strlow (encoding);
    if (is_substr (encoding, "base64"))
      node.encoding = "base64";
    else if (is_substr (encoding, "quoted-printable"))
-- 
2.1.4


------------------------------------------------------------------------------