File: sendmail-apprise

package info (click to toggle)
systemd-cron 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 656 kB
  • sloc: cpp: 2,276; sh: 933; makefile: 228; ansic: 133
file content (13 lines) | stat: -rwxr-xr-x 233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

from=
subject=
while read -r header rest; do
	case "$header" in
		""      )	break           ;;
		From:   )	from="$rest"    ;;
		Subject:)	subject="$rest" ;;
	esac
done

exec apprise -vv -t "$subject – $from" -b "$(cat)"