Compare commits

..

2 commits

Author SHA1 Message Date
7a08e41148 mew: Use minimal encoding.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2026-05-30 12:48:59 +02:00
a85252732b mew: Fix encoding.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2026-05-30 12:48:18 +02:00

7
mew.pl
View file

@ -17,9 +17,10 @@ my $input = join (' ',@ARGV);
utf8::decode($input); utf8::decode($input);
if ($input =~ /[\x80-\x{ffff}]/o) { if ($input =~ /[\x80-\x{ffff}]/o) {
print encode('MIME-Q', $input); $output = encode('MIME-Q', $input);
$output =~ s/=20/_/g;
} else { } else {
print decode('MIME-Q', $input); $output = decode('MIME-Q', $input);
}; };
print "\n"; print "$output\n";