MINOR: hlua_fcn/mailers: handle timeout mail from mailers section

As the example/lua/mailers.lua script does its best to mimic the c-mailer
implementation, it should support the "timeout mail" directive as well.

This could be backported in 2.8.
This commit is contained in:
Aurelien DARRAGON
2023-07-07 16:55:43 +02:00
committed by Christopher Faulet
parent b2f7069479
commit b58bd9794f
3 changed files with 19 additions and 1 deletions

View File

@@ -1198,6 +1198,12 @@ ProxyMailers class
Each array entry is a name:desc pair where desc represents the full server
address (including port) as described in haproxy's configuration file.
.. js:attribute:: ProxyMailers.mailservers_timeout
An integer representing the maximum time in milliseconds to wait for the
email to be sent. See "timeout mail" directive from "mailers" section in
haproxy configuration file.
.. js:attribute:: ProxyMailers.smtp_hostname
A string containing the hostname to use for the SMTP transaction.