From 54311e16fec9b76becac16509555f7693bbdb1ab Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 30 Oct 2014 10:52:03 +0100 Subject: email2irc: really truncate body --- bin/email2irc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/email2irc.sh') diff --git a/bin/email2irc.sh b/bin/email2irc.sh index 472616c4..740209ea 100755 --- a/bin/email2irc.sh +++ b/bin/email2irc.sh @@ -49,7 +49,8 @@ while read line ; do if [ "${line:0:5}" = "-----" ] ; then read line read line - MY_LINE=$(read line | cut -d " " -f1-2) + MY_LINE=$(read line) + MY_LINE=$(echo $MY_LINE | cut -d " " -f1-2) else MY_LINE=$(echo $line | tr -d \< | tr -d \>) fi -- cgit v1.2.3-54-g00ecf