changeset 167:842e1fca024a

add a quotemail function for quoting mail
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 08 Sep 2011 09:39:25 -0700
parents 8b81dd40c160
children 09c748a71b1b
files .bashrc
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.bashrc	Fri Sep 02 11:24:35 2011 -0700
+++ b/.bashrc	Thu Sep 08 09:39:25 2011 -0700
@@ -300,9 +300,7 @@
 }
 
 blog-file() {
-
 echo "$HOME/web/blog/k0s/entries/public/$1"
-
 }
 
 hgrc() {
@@ -341,6 +339,19 @@
     rm ${TMPFILE}
 }
 
+quotemail() {
+
+command='s/^/> /'
+inplace=""
+if [ "$#" == "2" ]
+then
+    inplace="-i"
+fi
+
+sed ${inplace} "${command}" "$1"
+
+}
+
 ### include overrides for commands
 source ~/.bash_overrides