Skip to content

Commit

Permalink
Update haraka for Plugin help
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lnedry authored Sep 19, 2024
1 parent efb0dc7 commit 0a72914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/haraka
Original file line number Diff line number Diff line change
Expand Up @@ -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 '* '
Expand Down

0 comments on commit 0a72914

Please sign in to comment.