Convert the content-transfer-encoding to lower-case always.
authorKen Hornstein <kenh@pobox.com>
Thu, 31 May 2012 18:56:47 +0000 (14:56 -0400)
committerKen Hornstein <kenh@pobox.com>
Thu, 31 May 2012 18:56:47 +0000 (14:56 -0400)
docs/contrib/replyfilter

index 8e591bd..ed4fe6b 100755 (executable)
@@ -193,7 +193,7 @@ sub process_text (*$$;$)
 
                binmode($input, ':encoding(us-ascii)');
 
-               $decoder = find_decoder($encoding);
+               $decoder = find_decoder(lc($encoding));
                if (! defined $decoder) {
                        return 'EOF';
                }
@@ -348,7 +348,7 @@ sub process_html (*$$;$)
        my $filterpid, $prefixpid, $finread, $finwrite;
        my $foutread, $foutwrite, $decoder, $ret;
 
-       if (! defined($decoder = find_decoder($encoding))) {
+       if (! defined($decoder = find_decoder(lc($encoding)))) {
                return 'EOF';
        }