HomeFreeBSD

zed: support subject as header in zed_notify_email()

Description

zed: support subject as header in zed_notify_email()

Some minimal MUAs don't support passing the subjects as cmdline option.
This commit checks if "@SUBJECT@" is missing in ZED_EMAIL_OPTS and then
prepends a subject header to the notification message.
Also set a default for ${subject}.

Reviewed-by: Ahelenia Ziemia<C5><84>ska <nabijaczleweli@nabijaczleweli.xyz>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Daniel Hiepler <d-git@coderdu.de>
Closes #13440

Details

Provenance
heeplr <32984777+heeplr@users.noreply.github.com>Authored on May 18 2022, 5:27 PM
GitHub <noreply@github.com>Committed on May 18 2022, 5:27 PM
Parents
rG00ac77464ef1: Expose zpool guids through kstats
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG08b32c6fa9dd: zed: support subject as header in zed_notify_email() (authored by heeplr <32984777+heeplr@users.noreply.github.com>).May 18 2022, 5:27 PM