Re: [Nmh-workers] draft validation, error checking

2012-04-28 Thread Ralph Corderoy
Hi Paul, > i'd like to elevate at least some of those warnings to fatal errors -- > i'd like to not be able to send the message until i fix the problem. > how might i do that? How about altering the draft so MH dislikes it too and won't do anything with it? sed -i '1s/^/errors please fix\n/'

Re: [Nmh-workers] draft validation, error checking

2012-04-28 Thread David Levine
Paul wrote: > is there a way to set up a hook of some sort, either at the whatnow > level, or deeper in send or post, which will cause forbid sending, or > cause sending to fail, if a set of user-defined sanity checks > don't succeed? > > i use a wrapper script for my editor in mh, and the script

[Nmh-workers] draft validation, error checking

2012-04-28 Thread Paul Fox
is there a way to set up a hook of some sort, either at the whatnow level, or deeper in send or post, which will cause forbid sending, or cause sending to fail, if a set of user-defined sanity checks don't succeed? i use a wrapper script for my editor in mh, and the script prints warnings regardin

Re: [Nmh-workers] Locking In Scripts and nmh Locking

2012-04-28 Thread norm
n...@dad.org writes: >valdis.kletni...@vt.edu writes: >>--==_Exmh_1335562212_1978P >>Content-Type: text/plain; charset=us-ascii >> >>On Fri, 27 Apr 2012 13:48:19 -0700, n...@dad.org said: >>> command is not executed until no other 'mhlock -all' is running, and >>> until >>> no relevant n

Re: [Nmh-workers] Locking In Scripts and nmh Locking

2012-04-28 Thread norm
Ken Hornstein writes: >>To make sure I understand this, I will discuss only the the -all case, which >>is >>all I asked for. (There would appear to be complex interactions between the >>other cases; it would hurt my brain to understand them.) > >The more I look at it ... it seems that -all won't

Re: [Nmh-workers] Locking In Scripts and nmh Locking

2012-04-28 Thread norm
valdis.kletni...@vt.edu writes: >--==_Exmh_1335562212_1978P >Content-Type: text/plain; charset=us-ascii > >On Fri, 27 Apr 2012 13:48:19 -0700, n...@dad.org said: >> command is not executed until no other 'mhlock -all' is running, and >> until >> no relevant nmh program is running. While