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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 27 2022, 4:19 PM
Parents
rG0a688b234540: rpm: Keep debug symbols if configured with '--enable-debuginfo'
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2458c7e63a07: zed: support subject as header in zed_notify_email() (authored by heeplr <32984777+heeplr@users.noreply.github.com>).May 27 2022, 4:19 PM