remove '-ne' option as it's not interpreted any way (issue #1003)

pull/1006/head
Thomas Mayer 2015-03-28 06:58:01 +01:00
parent 1c2e8f4185
commit 4a598070c8
1 changed files with 2 additions and 1 deletions

View File

@ -15,9 +15,10 @@ _whois = whois <ip> || 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 <ip> |
{ c=$(cat) ; cs=$(echo -ne "$c" | file -b --mime-encoding -) ; echo -ne "$c" | iconv -f $cs -t %(_whois_target_charset)s//TRANSLIT - ; }
{ c=$(cat) ; cs=$(echo "$c" | file -b --mime-encoding -) ; echo "$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.