repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
td-filter: new operators: starts with and ends with
[hband-tools.git]
/
user-tools
/
mime-header-decode
blob
63a0f5f9771133f74967cc851b7f7c3eedbfd336
1
#!/usr/bin/env perl
2
3
=pod
4
5
=head1 NAME
6
7
mime-header-decode - Decode MIME-encoded stream on stdin line-by-line
8
9
=cut
10
11
12
use
Encode
;
13
while
(<
STDIN
>)
14
{
15
print
encode
(
"UTF-8"
,
decode
(
"MIME-Header"
,
$_
));
16
}