Ajout d'un paramètre NAME pour un sujet de Mail
This commit is contained in:
parent
44748f8bb7
commit
e83c59c32f
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue