summaryrefslogtreecommitdiffstats
path: root/gitmirror
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-02-23 16:25:46 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-02-23 16:25:46 -0800
commit1861eea34e8e5d90175794aa6d00e6f1efedea91 (patch)
tree9e1a0a2d441acf7e42096a85cd13ed69906c8ff4 /gitmirror
parent0086ee56fa498b0a2da24cbb04b18d2a78875d12 (diff)
downloadnasmbuild-1861eea34e8e5d90175794aa6d00e6f1efedea91.tar.gz
nasmbuild-1861eea34e8e5d90175794aa6d00e6f1efedea91.tar.xz
nasmbuild-1861eea34e8e5d90175794aa6d00e6f1efedea91.zip
robotfmt.pl: MIME-encode headers as necessary
Diffstat (limited to 'gitmirror')
-rwxr-xr-xgitmirror/robotfmt.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitmirror/robotfmt.pl b/gitmirror/robotfmt.pl
index d7845e0..0009d5e 100755
--- a/gitmirror/robotfmt.pl
+++ b/gitmirror/robotfmt.pl
@@ -4,6 +4,7 @@
#
use Email::Valid;
+use MIME::EncWords;
($rev, $branches) = @ARGV;
@@ -95,6 +96,7 @@ while (defined($l = <LOG>)) {
# Strip quotes in From: if author string seems safe
$l = "From: $1 $2";
}
+ $l = MIME::EncWords::encode_mimewords($l, Charset => 'UTF-8');
} else {
if ($l =~ /^([a-z-]+-by|Cc|Author):\s.*<([^\>]+)>\s*$/i) {
$e = $2;