[Mageia-sysadm] [1004] add a replyto for mail from bot and the user creation by puppet

Michael Scherer misc at zarb.org
Fri Feb 11 16:23:34 CET 2011


Le vendredi 11 février 2011 à 16:10 +0100, root at mageia.org a écrit :
> Revision: 1004
> Author:   dams
> Date:     2011-02-11 16:10:39 +0100 (Fri, 11 Feb 2011)
> Log Message:
> -----------
> add a replyto for mail from bot and the user creation by puppet

The comment do not correspond to what was done

> Modified Paths:
> --------------
>     puppet/modules/blog/templates/check_new-blog-post.sh
> 
> Modified: puppet/modules/blog/templates/check_new-blog-post.sh
> ===================================================================
> --- puppet/modules/blog/templates/check_new-blog-post.sh	2011-02-11 14:59:26 UTC (rev 1003)
> +++ puppet/modules/blog/templates/check_new-blog-post.sh	2011-02-11 15:10:39 UTC (rev 1004)
> @@ -1,6 +1,7 @@
>  #!/bin/sh
>  
>  # Initialization
> +REPLYTO=mageia-blogteam at mageia.org

Placing the mail on the web is likely cause spam harvester to find it,
another reason to avoid placing it like this in svn.

>  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 @@
>  				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 at 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 at 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 at 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 at mageia.org
>  				echo $DATE
>  			fi
>  	fi

Same remark about unrelated changes.

-- 
Michael Scherer



More information about the Mageia-sysadm mailing list