Benjamin Renard commited on 2010-11-29 16:21:55
Showing 1 changed files, with 8 additions and 1 deletions.
| ... | ... |
@@ -1,5 +1,6 @@ |
| 1 | 1 |
#!/bin/bash |
| 2 | 2 |
|
| 3 |
+#NAME="My Roundcube" |
|
| 3 | 4 |
RC_HOME=/var/www/webmail/public_html |
| 4 | 5 |
MAIL=root |
| 5 | 6 |
SEND_EVERY_NB_DAY=7 |
| ... | ... |
@@ -89,7 +90,13 @@ then |
| 89 | 90 |
if [ $M -eq 1 ] |
| 90 | 91 |
then |
| 91 | 92 |
cat $tmp > $CACHE |
| 92 |
- cat $tmp | mail -s "New RoundCude release : $newest" $MAIL |
|
| 93 |
+ if [ -n $NAME ] |
|
| 94 |
+ then |
|
| 95 |
+ S="[$NAME] New RoundCude release" |
|
| 96 |
+ else |
|
| 97 |
+ S="New RoundCude release" |
|
| 98 |
+ fi |
|
| 99 |
+ cat $tmp | mail -s "$S : $newest" $MAIL |
|
| 93 | 100 |
[ $DEBUG -eq 1 ] && echo "Mail envoyé" |
| 94 | 101 |
fi |
| 95 | 102 |
rm -f $tmp |
| 96 | 103 |