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}"
300 # zed_notify_pushbullet (subject, pathname)
316 # subject: notification subject
330 local subject="$1"
341 [ -n "${subject}" ] || return 1
365 "${msg_tag}" "${subject}" "${msg_body}")"
386 # zed_notify_slack_webhook (subject, pathname)
398 # subject: notification subject
413 local subject="$1"
422 [ -n "${subject}" ] || return 1
440 msg_json="$(printf '{"text": "*%s*\\n%s"}' "${subject}" "${msg_body}" )"
460 # zed_notify_pushover (subject, pathname)
473 # subject: notification subject
487 local subject="$1"
509 msg_body=$subject
510 subject=""
520 --form-string "title=${subject}" \
538 # zed_notify_ntfy (subject, pathname)
554 # subject: notification subject
569 local subject="$1"
591 msg_body=$subject
592 subject=""
601 -H "Title: ${subject}" \
610 -H "Title: ${subject}" \
631 # zed_notify_gotify (subject, pathname)
646 # subject: notification subject
661 local subject="$1"
683 msg_body=$subject
684 subject=""
692 --form-string "title=${subject}" \
701 --form-string "title=${subject}" \