Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (16 sloc) 548 Bytes
#!/bin/sh -e
# mails todo list and unfiled notes to me, unless empty
tempfile=`mktemp /tmp/mailXXXXXXXX`
addline () { echo $1 >> $tempfile ; }
addfile () { cat $1 >> $tempfile ; }
addline "To: John MacFarlane <>"
addline "Subject: Todo list"
addline ""
addline "Good morning John!"
addline ""
addline "Here are some things to work on today:"
addline ""
sed -ne '/TODO/p' $todofile >> $tempfile
cat $tempfile | /usr/sbin/sendmail -F "Your Computer" -f "jgm" -i
rm $tempfile
Jump to Line
Something went wrong with that request. Please try again.