From ac1e41ea703cda2bfd6be064ed469c65ea5579ae Mon Sep 17 00:00:00 2001 From: Thomas Mayer Date: Sun, 29 Mar 2015 17:54:25 +0200 Subject: [PATCH] Revert "remove '-ne' option as it's not interpreted any way (issue #1003)" This reverts commit 4a598070c8eebb2062c241b3361742db1911c265. --- config/action.d/mail-whois-common.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/action.d/mail-whois-common.conf b/config/action.d/mail-whois-common.conf index b0de00e0..178081e4 100644 --- a/config/action.d/mail-whois-common.conf +++ b/config/action.d/mail-whois-common.conf @@ -15,10 +15,9 @@ _whois = whois || echo "missing whois program" # use heuristics to convert charset of whois output to a target # character set before sending it to a mail program -# make sure you have 'file' and 'iconv' commands installed when using this _whois_target_charset = UTF-8 _whois_convert_charset = whois | - { c=$(cat) ; cs=$(echo "$c" | file -b --mime-encoding -) ; echo "$c" | iconv -f $cs -t %(_whois_target_charset)s//TRANSLIT - ; } + { c=$(cat) ; cs=$(echo -ne "$c" | file -b --mime-encoding -) ; echo -ne "$c" | iconv -f $cs -t %(_whois_target_charset)s//TRANSLIT - ; } # choose between _whois and _whois_convert_charset in mail-whois-common.local # or other *.local which include mail-whois-common.conf.