diff --git a/check_rc_upgrade.sh b/check_rc_upgrade.sh index afc6083..4e41f5d 100755 --- a/check_rc_upgrade.sh +++ b/check_rc_upgrade.sh @@ -1,5 +1,6 @@ #!/bin/bash +#NAME="My Roundcube" RC_HOME=/var/www/webmail/public_html MAIL=root SEND_EVERY_NB_DAY=7 @@ -89,7 +90,13 @@ then if [ $M -eq 1 ] then cat $tmp > $CACHE - cat $tmp | mail -s "New RoundCude release : $newest" $MAIL + if [ -n $NAME ] + then + S="[$NAME] New RoundCude release" + else + S="New RoundCude release" + fi + cat $tmp | mail -s "$S : $newest" $MAIL [ $DEBUG -eq 1 ] && echo "Mail envoyé" fi rm -f $tmp