Permalink
Browse files

Updated todo file.

  • Loading branch information...
1 parent da38352 commit 203c7d213dfed1fe01dc7d69d36461af6c3bd4d4 @jgm committed Mar 22, 2011
Showing with 2 additions and 9 deletions.
  1. +2 −9 daily-mail
View
@@ -2,8 +2,7 @@
# mails todo list and unfiled notes to me, unless empty
tempfile=`mktemp /tmp/mailXXXXXXXX`
-todofile="$HOME/Wiki/TodoList"
-notesfile="$HOME/Wiki/UnfiledNotes"
+todofile="$HOME/org/todo.org"
addline () { echo $1 >> $tempfile ; }
addfile () { cat $1 >> $tempfile ; }
@@ -14,15 +13,9 @@ addline ""
addline "Good morning John!"
addline ""
-if [ -s $notesfile ] ; then
- addline "You have unfiled notes:"
- addline ""
- addfile $notesfile
- addline ""
-fi
addline "Here are some things to work on today:"
addline ""
-addfile $todofile
+sed -ne '/TODO/p' $todofile >> $tempfile
cat $tempfile | /usr/sbin/sendmail -F "Your Computer" -f "jgm" -i jgm@berkeley.edu
rm $tempfile

0 comments on commit 203c7d2

Please sign in to comment.