nmh-workers
[Top] [All Lists]

[Nmh-workers] hooks interface issues

2014-02-23 12:23:10
I cannot get the hooks to work:
  inc: external hook ((null)) did not work properly.
  refile: external hook ((null)) did not work properly.

Configured via .mh_profile:
  add-hook: /usr/local/bin/hook-test
  ref-hook: /usr/local/bin/hook-test

/usr/local/bin/hook-test:
  #!/bin/sh
  echo "Hooked($1)" $*

Some other thoughts on the interface:
 * The requirement that the hook handler be specified by
   an absolute path is rather odd.
 * It seems a more flexible arrangement would be if the
   path and message number/file were given as separate
   arguments. Concatenation is simple/cheap in a script,
   but separating the two for more complex operations is
   less so; especially when repeated for many messages.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>