]> diplodocus.org Git - nmh/blobdiff - docs/contrib/localpostproc
Add support for batch mode.
[nmh] / docs / contrib / localpostproc
index c8f71702fbd97cff4477aed7c6056f86ce89fa57..dcd99855dc64a99851cc1327cd98b09724bf3584 100755 (executable)
@@ -10,7 +10,8 @@
 #
 
 #
 #
 
 #
-# Find out which message is the draft message; yes, this sucks.
+# Find the draft message, always the last argument, and whether we've
+# been called with -whom;  the latter sucks.
 #
 # The case statement has to know about switches that take arguments;
 # add to this list as necessary.
 #
 # The case statement has to know about switches that take arguments;
 # add to this list as necessary.
@@ -42,7 +43,7 @@ find_draftmessage() {
        exit 1
 }
 
        exit 1
 }
 
-realpost="$(mhparam libdir)/post"
+realpost="$(mhparam libexecdir)/post"
 
 if [ $# -eq 0 ]; then
        echo "Usage: [post switches] filename"
 
 if [ $# -eq 0 ]; then
        echo "Usage: [post switches] filename"