Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (16 sloc) 0.548 kB
#!/bin/sh -e
# mails todo list and unfiled notes to me, unless empty
tempfile=`mktemp /tmp/mailXXXXXXXX`
todofile="$HOME/org/todo.org"
addline () { echo $1 >> $tempfile ; }
addfile () { cat $1 >> $tempfile ; }
addline "To: John MacFarlane <jgm@berkeley.edu>"
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 jgm@berkeley.edu
rm $tempfile
Jump to Line
Something went wrong with that request. Please try again.