Skip to content

Commit

Permalink
Update Haraka help for plugin run order (#3405)
Browse files Browse the repository at this point in the history
Fixed GetHooks function to return the array of plugin names.

This doesn't completely resolve the issue of Haraka help displaying
plugin run order. The Haraka installation still needs to install
Plugins.md into the docs directory.
  • Loading branch information
lnedry authored Sep 21, 2024
1 parent 1dc98f4 commit 504570e
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 504570e

Please sign in to comment.