zfs/cmd/zed
heeplr 2458c7e63a 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
2022-05-27 09:19:37 -07:00
..
agents zed: Take no action on scrub/resilver checksum errors 2022-05-27 09:19:37 -07:00
zed.d zed: support subject as header in zed_notify_email() 2022-05-27 09:19:37 -07:00
.gitignore Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
Makefile.am libspl: implement atomics in terms of atomics 2021-06-21 21:48:31 -07:00
zed.c Upstream: Add snapshot and zvol events 2022-02-10 11:04:06 -08:00
zed.h Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_conf.c Upstream: Add snapshot and zvol events 2022-02-10 11:04:06 -08:00
zed_conf.h Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_disk_event.c zed: Misc multipath autoreplace fixes 2022-03-18 06:54:48 -07:00
zed_disk_event.h Bring over illumos ZFS FMA logic -- phase 1 2016-09-01 11:39:45 -07:00
zed_event.c Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_event.h Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_exec.c Upstream: Add snapshot and zvol events 2022-02-10 11:04:06 -08:00
zed_exec.h Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_file.c Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_file.h Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_log.c Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_log.h Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_strings.c Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
zed_strings.h Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00