From: Ralph Corderoy Date: Sun, 16 Oct 2016 08:58:34 +0000 (+0100) Subject: Explicitly state a postproc's last argument will be the draft. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/07fc0c55b466a5f7f4f4efdc62b9086abd45cfc6 Explicitly state a postproc's last argument will be the draft. Update the sample postproc script to make clear it's the -whom detection that sucks. --- diff --git a/docs/contrib/localpostproc b/docs/contrib/localpostproc index c8f71702..53bc2a57 100755 --- a/docs/contrib/localpostproc +++ b/docs/contrib/localpostproc @@ -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. diff --git a/man/post.man b/man/post.man index 253b80c1..459141ce 100644 --- a/man/post.man +++ b/man/post.man @@ -62,8 +62,13 @@ Thus, it is .B post which parses the various header fields, appends a \*(lqDate:\*(rq line, and interacts with the mail transport system. -.B Post -will not normally be called directly by the user. +.B post +will not normally be called directly by the user, +but can be replaced by the user with a +.I postproc +profile component that will have +.I file +as its final argument. .PP .B Post searches the \*(lqTo:\*(rq, \*(lqcc:\*(rq, \*(lqBcc:\*(rq,