Diff for /reports/sendletter.sh between versions 1.1 and 1.11

version 1.1, 2002/12/25 19:24:20 version 1.11, 2010/03/04 16:31:46
Line 1 Line 1
 #!/bin/sh  #!/bin/sh
 ADDRESS="chronicles@chgk.info"  ADDRESS="chronicles@chgk.info"
 #ADDRESS=boris  #ADDRESS=boris
 PREFIX=http://znatoki.kulichki.net/boris/reports  PREFIX=http://letopis.chgk.info
 if ( grep html results.txt > letter1.txt ) ; then  if ( grep html results.txt > letter1.txt ) ; then
     echo "Sending notification to $ADDRESS"      echo "Sending notification to $ADDRESS"
     echo > letter.txt      echo > letter.txt
Line 21  if ( grep html results.txt > letter1.txt Line 21  if ( grep html results.txt > letter1.txt
 s/<[^>]*>//g  s/<[^>]*>//g
 s/<[^>]*$//g  s/<[^>]*$//g
 s/^[^<]*>//g  s/^[^<]*>//g
 s/&lt;/</g  s/&lt;[a-zA-Z\._0-9-]*@[a-zA-Z\._0-9-]*&gt;/<address>/g
 s/&gt;/>/g  
 /^[     ]*$/d  /^[     ]*$/d
 s/^\(.*\)$/   \1/' |head -5  >>letter.txt  s/^\(.*\)$/   \1/' |head -5  >>letter.txt
             echo >> letter.txt              echo >> letter.txt
Line 32  s/^\(.*\)$/   \1/' |head -5  >>letter.tx Line 31  s/^\(.*\)$/   \1/' |head -5  >>letter.tx
     echo "--" >> letter.txt      echo "--" >> letter.txt
     echo "Ваш робот" >> letter.txt      echo "Ваш робот" >> letter.txt
     echo >> letter.txt      echo >> letter.txt
     fortune /usr/local/share/games/fortunes >> letter.txt  #    fortune lec >> letter.txt
     mail -s "Novosti v letopisi" $ADDRESS <letter.txt      mail -s "Novosti v letopisi" $ADDRESS <letter.txt
 fi  
   
   fi

Removed from v.1.1  
changed lines
  Added in v.1.11


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>