blob: 4c6538ba3b4b4cc1f04ff338a255f23df07d799f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# Why not?
readonly tmpl="${XDG_DATA_HOME:-$HOME/.local/share}/send-package/template"
sed -En '/^Angel Cakes/,/^Doozies/s/(\t|\s{2,})/\n/gp' ~/doc/tit-names \
| shuf -n1 \
| xargs -I{} -- sed -e 's/$REPLACEME/{}/' -e "s/\$TO/$TO/" "$tmpl"
| msmtp -t --read-envelope-from
|