[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] hooks interface issues

From: Jerrad Pierce
Subject: Re: [Nmh-workers] hooks interface issues
Date: Mon, 24 Feb 2014 10:18:39 -0500

>1.  I had thought that I had added the hook stuff to the documentation for
>    mh_profile but I don't see it there.  I'd be happy to add it.  I have

mh_profile seems like a good place for this. There coudl also potentially
be a cookbook somewhere on extending nmh, with references to this, Jerry's
book, contribs, GUIs, etc.

>2.  As far as I know, this code works properly.  I use it dozens of times
>    per day, and have been doing so for more than a decade.  That doesn't

I figured as much, and yet, kablooey.

With Ken's new diagnostics:

  refile: Unable to execute /usr/local/bin/hook-add: No such file or directory
  external hook "/usr/local/bin/hook-add": exit 255

There's a non-printable character before the second colon. The file was not
new-line terminated, and so the code was trying to invoke a bogus command >-/
After adding a new line, all hooks are firing. Ought one not be permissive
of input though?

>3.  I might have missed slocal, probably because I don't use it and I'm
>    guessing that it doesn't use the common sbr code that everything else

It would be worth adding, Perhaps also the environment variables?


>4.  I'm not sure why whatnow/send/post should be in the list of affected
>    commands.  Those don't invoke the hooks.

One of these seems the best match for documenting that add-hook is tripped
for Fcc: in drafts under "These changes affect the following commands:"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]