Skip to content

Commit bf9a5e5

Browse files
authored
zed: fix sending emails
Commit 6fc3099 broke the quoting when invoking the mail program, revert part of that change
1 parent f20fb19 commit bf9a5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/zed/zed.d/zed-functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ zed_notify_email()
267267
-e "s/@SUBJECT@/${subject}/g")"
268268

269269
# shellcheck disable=SC2086
270-
${ZED_EMAIL_PROG} ${ZED_EMAIL_OPTS} < "${pathname}" >/dev/null 2>&1
270+
eval "${ZED_EMAIL_PROG}" ${ZED_EMAIL_OPTS} < "${pathname}" >/dev/null 2>&1
271271
rv=$?
272272
if [ "${rv}" -ne 0 ]; then
273273
zed_log_err "$(basename "${ZED_EMAIL_PROG}") exit=${rv}"

0 commit comments

Comments
 (0)