[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nmh-workers] hooks interface issues
From: |
belg4mit |
Subject: |
[Nmh-workers] hooks interface issues |
Date: |
Sun, 23 Feb 2014 13:22:45 -0500 |
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.