Haraka help displays registered plugins in the wrong run order
lnedry opened this issue · comments
Describe the bug
Haraka help displays registered plugins in the wrong run order.
Expected behavior
Haraka help describes the --order option as: "Show all registered plugins and their run order"
I expect to see a list of plugins, sorted by the order in which the hooks are executed. And under each plugin, a list of their methods (this part seems to be sorted correctly).
Observed behavior
/etc/haraka# haraka --configs . --order | grep Hook
Hook: init_master --------------------------------------------------------------
Hook: init_child ---------------------------------------------------------------
Hook: connect_init -------------------------------------------------------------
Hook: disconnect ---------------------------------------------------------------
Hook: rcpt ---------------------------------------------------------------------
Hook: data ---------------------------------------------------------------------
Hook: log ----------------------------------------------------------------------
Hook: connect ------------------------------------------------------------------
Hook: mail ---------------------------------------------------------------------
Hook: helo ---------------------------------------------------------------------
Hook: ehlo ---------------------------------------------------------------------
Hook: data_post ----------------------------------------------------------------
Hook: lookup_rdns --------------------------------------------------------------
Hook: deny ---------------------------------------------------------------------
Hook: capabilities -------------------------------------------------------------
Hook: unrecognized_command -----------------------------------------------------
Hook: rcpt_ok ------------------------------------------------------------------
Hook: queue_ok -----------------------------------------------------------------
Hook: queue --------------------------------------------------------------------
Hook: get_mx -------------------------------------------------------------------
System Info:
Haraka | Haraka.js — Version: 3.0.1 |
---|---|
Node | v18.16.0 |
OS | Linux mx4 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux |
openssl | OpenSSL 1.1.1n 15 Mar 2022 |