]> git.kaiwu.me - haproxy.git/commit
CLENAUP: cfgparse-listen: move "email-alert" to its own parser
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 15:21:29 +0000 (17:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 08:30:59 +0000 (10:30 +0200)
commit0fb83378869515c68cdf0a95ec0e7d6340a234db
tree7677a34486dd3251abdca91b0d4fce697c660395
parent99ecc2dcff49679cfed509b1a37513d9b89d179d
CLENAUP: cfgparse-listen: move "email-alert" to its own parser

The keyword is now registered in cfg_kws and parsed by
proxy_parse_email_alert(), making it discoverable via "-dKcfg".

The "from", "mailers", "myhostname" and "to" options only differ by the
field they assign, so the field is now selected first and the rest of
the processing, including the check for a missing value, is shared.
~25% code removed in the operation.
src/cfgparse-listen.c