summaryrefslogtreecommitdiff
path: root/.local/bin/send-package
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-26 00:12:10 +0300
committerThomas Voss <mail@thomasvoss.com> 2023-08-26 00:12:10 +0300
commite20b6c699b10ef53cd63f5ffc93c8a8b2ebb1672 (patch)
tree4cbaa22a91c1f7ba73204fe30b71c1e0d53e396a /.local/bin/send-package
parentba7ef3fdba9d078c509ac4fffa2ac5f57d9996c5 (diff)
send-package: Store recipient email in vault
Diffstat (limited to '.local/bin/send-package')
-rwxr-xr-x.local/bin/send-package7
1 files changed, 5 insertions, 2 deletions
diff --git a/.local/bin/send-package b/.local/bin/send-package
index f51b6f3..357c410 100755
--- a/.local/bin/send-package
+++ b/.local/bin/send-package
@@ -6,5 +6,8 @@ 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 's/$REPLACEME/{}/' "$tmpl" \
- | msmtp --read-envelope-from "$TO"
+ | tr A-Z a-z \
+ | xargs -I{} -- \
+ sed -e "1iTo: `vlt raw Miscellaneous send-package-to`" \
+ -e 's/$REPLACEME/{}/' "$tmpl"
+ | msmtp -t --read-envelope-from