mew: Use minimal encoding.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
a85252732b
commit
7a08e41148
1 changed files with 4 additions and 3 deletions
7
mew.pl
7
mew.pl
|
|
@ -17,9 +17,10 @@ my $input = join (' ',@ARGV);
|
|||
utf8::decode($input);
|
||||
|
||||
if ($input =~ /[\x80-\x{ffff}]/o) {
|
||||
print encode('MIME-Q', $input);
|
||||
$output = encode('MIME-Q', $input);
|
||||
$output =~ s/=20/_/g;
|
||||
} else {
|
||||
print decode('MIME-Q', $input);
|
||||
$output = decode('MIME-Q', $input);
|
||||
};
|
||||
|
||||
print "\n";
|
||||
print "$output\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue