message file. The program is executed after the message
is written.
-msg-hook: This is a text message that is output if the execution of
- one of the external hook programs fails. There is a built-in
- default message if none is specified.
-
-The definition of refiling is a bit tricky. The refile hook is executed if a
message is moved from one place to another. So, for example, the command
refile -link
+The definition of refiling is a bit tricky. The refile hook is executed if a
causes the add hook to be executed, not the refile hook, because a new message
is created, the old one isn't moved.
folder_delmsgs.c
folder_pack.c
ext_hook.c (new file)
+
+Old config options:
+~~~~~~~~~~~~~~~~~~~
+
+In the original implementation availible config option, which are removed.
+
+msg-hook: This is a text message that is output if the execution of
+ one of the external hook programs fails. There is a built-in
+ default message if none is specified.
+ This is removed, because I don't see this is necesarry and it's
+ not a good idee to pass a user provided string direkt in an
+ format string.
+
if (did_message) {
return (NOTOK);
}
- if ((hook = context_find("msg-hook"))) {
- advise(NULL, hook);
- } else {
- advise(NULL, "external hook (%s) failed.", hook);
- }
+ advise(NULL, "external hook (%s) failed.", hook);
did_message = 1;
return (NOTOK);
} else {