aboutsummaryrefslogtreecommitdiffstats
path: root/modules/blog/templates
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2011-02-11 15:10:39 +0000
committerDamien Lallement <dams@mageia.org>2011-02-11 15:10:39 +0000
commitbf38465ef38513ef7b7c8f22b75be98ba3999b22 (patch)
treee410dbe9f2c2aa9056046febb5069798eca09323 /modules/blog/templates
parent336edb648fe33b9e63471f5c458e982f46e786fc (diff)
downloadpuppet-bf38465ef38513ef7b7c8f22b75be98ba3999b22.tar
puppet-bf38465ef38513ef7b7c8f22b75be98ba3999b22.tar.gz
puppet-bf38465ef38513ef7b7c8f22b75be98ba3999b22.tar.bz2
puppet-bf38465ef38513ef7b7c8f22b75be98ba3999b22.tar.xz
puppet-bf38465ef38513ef7b7c8f22b75be98ba3999b22.zip
add a replyto for mail from bot and the user creation by puppet
Diffstat (limited to 'modules/blog/templates')
-rwxr-xr-xmodules/blog/templates/check_new-blog-post.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/blog/templates/check_new-blog-post.sh b/modules/blog/templates/check_new-blog-post.sh
index 695e7303..093d5567 100755
--- a/modules/blog/templates/check_new-blog-post.sh
+++ b/modules/blog/templates/check_new-blog-post.sh
@@ -1,6 +1,7 @@
#!/bin/sh
# Initialization
+REPLYTO=mageia-blogteam@mageia.org
PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/blog}
/usr/bin/wget -qO $PATH_TO_FILE"/last_tmp" http://blog.mageia.org/?feed=rss2
if [ $? -ne 0 ]
@@ -37,14 +38,14 @@ if [ "$tmp_old" = "$tmp_new" ]
cat $PATH_TO_FILE"/last_check" > $PATH_TO_FILE"/last_need_translation"
echo $tmp_new >> $PATH_TO_FILE"/last_need_translation"
echo "YES - Modification" >> $PATH_TO_FILE"/last_check"
- echo -e "Info: the last blog post had been modified and need to be checked.\n\"$tmp_new\"" | /bin/mail -s "Modification of the last entry on English Blog" mageia-blogteam@mageia.org
+ echo -e "Info: the last blog post had been modified and need to be checked.\nTitle: \"$tmp_new\"" | /bin/mail -s "Modification of the last entry on English Blog" mageia-blogteam@mageia.org
echo $DATE
else
# New post to translate
cat $PATH_TO_FILE"/last_check" > $PATH_TO_FILE"/last_need_translation"
echo $tmp_new >> $PATH_TO_FILE"/last_need_translation"
echo "YES - New entry" >> $PATH_TO_FILE"/last_check"
- echo -e "Info: a new blog post is waiting for translation.\n\"$tmp_new\"" | /bin/mail -s "New entry on English Blog" mageia-blogteam@mageia.org
+ echo -e "Info: a new blog post is waiting for translation.\nTitle: \"$tmp_new\"" | /bin/mail -s "New entry on English Blog" mageia-blogteam@mageia.org
echo $DATE
fi
fi