#!/bin/csh # by Joseph Harth # This script is designed to work with Licq and Speechd # You must copy the script to the /usr/bin directory. # You must also go under icq options and type licq-talk # under command, m under message, u under url, c under chat # o under online notify and s under system message # # It outputs the contents of your mail file to the # speecg device and then it # deletes the local mail file from your computer. # licq -p forwarder -p qt-gui set U='Incoming site' set C='Incoming chat' set F='Incoming File' set O='User Online' if ($1 == "u") then echo $U >> /dev/speech endif if ($1 == "o") then echo $O >> /dev/speech endif if ($1 == "c") then echo $C >> /dev/speech endif if ($1 == "f") then echo $F >> /dev/speech endif @ i=1 while ( $i <= 5000 ) @ i = $i + 1 end if ($1 == "m") then sed -n -e '12,20p' < /var/spool/mail/$USER >>/dev/speech rm -rf /var/spool/mail/$USER endif if ($1 == "s") then sed -n -e '16,20p' < /var/spool/mail/$USER >>/dev/speech rm -rf /var/spool/mail/$USER endif