tgone.fishing - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
tgone.fishing (313B)
---
     1 #!/bin/sh
     2 PATH=/bin:/usr/bin
     3 message=${1-/usr/lib/upas/gone.msg}
     4 return=`sed '2,$s/^From[         ]/>&/'|tee -a $HOME/gone.mail|sed -n '1s/^From[         ]\([^         ]*\)[         ].*$/\1/p'`
     5 echo '' >>$HOME/gone.mail
     6 grep "^$return" $HOME/gone.addrs >/dev/null 2>/dev/null || {
     7         echo $return >>$HOME/gone.addrs
     8         mail $return < $message
     9 }