Lines Matching full:subject

172 # zed_notify (subject, pathname)
177 # subject: notification subject
187 local subject="$1"
192 zed_notify_email "${subject}" "${pathname}"; rv=$?
196 zed_notify_pushbullet "${subject}" "${pathname}"; rv=$?
200 zed_notify_slack_webhook "${subject}" "${pathname}"; rv=$?
204 zed_notify_pushover "${subject}" "${pathname}"; rv=$?
208 zed_notify_ntfy "${subject}" "${pathname}"; rv=$?
212 zed_notify_gotify "${subject}" "${pathname}"; rv=$?
222 # zed_notify_email (subject, pathname)
233 # - @SUBJECT@ is replaced with the notification subject
234 # If @SUBJECT@ was omited here, a "Subject: ..." header will be added to notification
238 # subject: notification subject
253 local subject="${1:-"ZED notification"}"
257 : "${ZED_EMAIL_OPTS:="-s '@SUBJECT@' @ADDRESS@"}"
267 [ -n "${subject}" ] || return 1
277 -e "s/@SUBJECT@/${subject}/g")"
282 # no subject passed as option?
283 if [ "${ZED_EMAIL_OPTS%@SUBJECT@*}" = "${ZED_EMAIL_OPTS}" ] ; then
284 # inject subject header
285 printf "Subject: %s\n" "${subject}"
305 # zed_notify_pushbullet (subject, pathname)
321 # subject: notification subject
335 local subject="$1"
346 [ -n "${subject}" ] || return 1
370 "${msg_tag}" "${subject}" "${msg_body}")"
391 # zed_notify_slack_webhook (subject, pathname)
403 # subject: notification subject
418 local subject="$1"
427 [ -n "${subject}" ] || return 1
445 msg_json="$(printf '{"text": "*%s*\\n%s"}' "${subject}" "${msg_body}" )"
465 # zed_notify_pushover (subject, pathname)
478 # subject: notification subject
492 local subject="$1"
514 msg_body=$subject
515 subject=""
525 --form-string "title=${subject}" \
543 # zed_notify_ntfy (subject, pathname)
559 # subject: notification subject
574 local subject="$1"
596 msg_body=$subject
597 subject=""
606 -H "Title: ${subject}" \
615 -H "Title: ${subject}" \
636 # zed_notify_gotify (subject, pathname)
651 # subject: notification subject
666 local subject="$1"
688 msg_body=$subject
689 subject=""
697 --form-string "title=${subject}" \
706 --form-string "title=${subject}" \