--- reports/sendcalendar.sh 2003/05/22 18:01:50 1.1
+++ reports/sendcalendar.sh 2007/08/21 03:57:16 1.5
@@ -1,6 +1,6 @@
#!/bin/sh
-#ADDRESS="chronicles@chgk.info"
-ADDRESS=boris
+ADDRESS="chronicles@chgk.info"
+#ADDRESS=boris
URL=http://letopis.chgk.info/calendar.html
echo "Sending notification to $ADDRESS"
@@ -15,13 +15,12 @@ s/
/\./
s/<[^>]*>//g
s/<[^>]*$//g
s/^[^<]*>//g
-s/<//g
+s/<[a-zA-Z\._0-9-]*@[a-zA-Z\._0-9-]*>//g
/^[ ]*$/d
s/^.$//' calendar.html>> calendar.txt
echo >> calendar.txt
echo "--" >> calendar.txt
echo "Ваш робот" >> calendar.txt
echo >> calendar.txt
-# fortune /usr/local/share/games/fortunes >> letter.txt
+fortune lec >> calendar.txt
mail -s "Novosti v kalendare" $ADDRESS < calendar.txt