ajout de l'envoi auto du message modr moderateurs@crans.org
darcs-hash:20020210232558-a279a-1397fd0f422ee580b865e69df574e4b2a10037a5.gz
This commit is contained in:
parent
70a4903fbd
commit
f7f19f621b
1 changed files with 8 additions and 1 deletions
|
@ -41,7 +41,14 @@ SAUVEGARDE () {
|
|||
case $reponse in
|
||||
o*|O*)
|
||||
rep=`echo $newsgroup | sed 's/\./\//g'`
|
||||
cp /var/spool/news/articles/$rep/$numero /root/moderes/$newsgroup'.'$numero
|
||||
cp /var/spool/news/articles/$rep/$numero /root/moderes/$newsgroup'.'$numero.nws
|
||||
moderateur=`who am i | awk '{print $1}'`
|
||||
echo "modérateur : $moderateur" > /tmp/commentaires.txt
|
||||
echo "commentaires : " >> /tmp/commentaires.txt
|
||||
$EDITOR /tmp/commentaires.txt
|
||||
echo . >> /tmp/commentaires.txt
|
||||
cat /tmp/commentaires.txt | mutt -nx -a /root/moderes/$newsgroup'.'$numero.nws -s "moderation de $newsgroup.$numero" moderateurs
|
||||
rm -f /tmp/commentaires.txt
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue