X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3b640c422bd716ab7246d72b1ea3b35dff533e29..f7a2498729e0c642c7c7fb573deee3a35176de44:/docs/contrib/replaliases?ds=sidebyside diff --git a/docs/contrib/replaliases b/docs/contrib/replaliases index a4ac6c7b..efc249c1 100644 --- a/docs/contrib/replaliases +++ b/docs/contrib/replaliases @@ -1,7 +1,13 @@ #### replaliases #### #### convenience functions for various repl(1) commands -#### They're functions instead of aliases for portability. +#### +#### They're functions instead of aliases for portability. This file +#### is intended to be sourced from a Bourne-compatible shell, e.g., +#### source `mhparam docdir`/contrib/replaliases +#### to declare the functions. +#### +#### Author: David Levine #### If using par (see mhn.defaults), it helps to have its PARINIT #### environment variable set. If you really want it to be null, @@ -26,12 +32,12 @@ fi rt() { if [ "$1" = -h ]; then shift - repl -filter mhl.replywithoutbody -convertargs text/plain '' "$@" + \repl -filter mhl.replywithoutbody -convertargs text/plain '' "$@" elif [ "$1" = -p ]; then shift - repl -filter mhl.replywithoutbody -convertargs text/html '' "$@" + \repl -filter mhl.replywithoutbody -convertargs text/html '' "$@" else - repl -filter mhl.replywithoutbody \ + \repl -filter mhl.replywithoutbody \ -convertargs text/html '' -convertargs text/plain '' "$@" fi } @@ -53,26 +59,26 @@ rtm() { #### accept a calendar request calaccept() { - repl -noformat -editor mhbuild \ - -convertargs text/calendar '-reply accept -contenttype' + \repl -noformat -editor mhbuild \ + -convertargs text/calendar '-reply accept -contenttype' "$@" } #### decline a calendar request caldecline() { - repl -noformat -editor mhbuild \ - -convertargs text/calendar '-reply decline -contenttype' + \repl -noformat -editor mhbuild \ + -convertargs text/calendar '-reply decline -contenttype' "$@" } #### reply as tentative to a calendar request caltentative() { - repl -noformat -editor mhbuild \ - -convertargs text/calendar '-reply tentative -contenttype' + \repl -noformat -editor mhbuild \ + -convertargs text/calendar '-reply tentative -contenttype' "$@" } #### cancel a calendar request calcancel() { - repl -noformat -editor mhbuild \ - -convertargs text/calendar '-cancel -contenttype' + \repl -noformat -editor mhbuild \ + -convertargs text/calendar '-cancel -contenttype' "$@" }