From 0a7291443c97bc1f309b04dbd10f0e79f7dc136b Mon Sep 17 00:00:00 2001 From: lnedry Date: Thu, 19 Sep 2024 13:40:00 -0400 Subject: [PATCH] Update haraka for Plugin help Fixed GetHooks to return the array that it creates. This doesn't completely resolve the issue of Haraka help displaying plugin run order. Haraka installation still needs to install Plugins.md into the docs directory. --- bin/haraka | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/haraka b/bin/haraka index 1ab666ece..179b5b548 100755 --- a/bin/haraka +++ b/bin/haraka @@ -228,7 +228,7 @@ const plugin_doc = [ function getHooks () { // see haraka/Haraka#3306 - fs.readFileSync('docs/Plugins.md').toString() + return fs.readFileSync('docs/Plugins.md').toString() .split('## Available Hooks')[1] // discard everything before this string .split('### rcpt')[0] // discard everything after this string .match(/\*\s(\S+)/gm) // grab the first word of lines starting with '* '