summaryrefslogtreecommitdiffstats
path: root/bin/email2irc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-xbin/email2irc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 1da5f410..0eaebb96 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -113,8 +113,8 @@ if [ "$VALID_MAIL" = "true" ] ; then
# only notify if there is a channel to notify
if [ ! -z $CHANNEL ] ; then
# log message
- echo "#$CHANNEL: $SUBJECT. $MY_LINE" >> $LOGFILE
- MESSAGE="$SUBJECT. $MY_LINE"
+ MESSAGE="$(echo $SUBJECT | cut -d ':' -f1) $(echo $MY_LINE|sed -s 's#Changes:##g') "
+ echo "#$CHANNEL: $MESSAGE" >> $LOGFILE
# notify kgb
kgb-client --conf /srv/jenkins/kgb/$CHANNEL.conf --relay-msg "$MESSAGE" && echo "kgb informed successfully." >> $LOGFILE
echo >> $LOGFILE