From e20b6c699b10ef53cd63f5ffc93c8a8b2ebb1672 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 26 Aug 2023 00:12:10 +0300 Subject: send-package: Store recipient email in vault --- .local/bin/send-package | 7 +++++-- .local/share/vault/vault.sec | Bin 8391 -> 8455 bytes 2 files changed, 5 insertions(+), 2 deletions(-) (limited to '.local') 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 diff --git a/.local/share/vault/vault.sec b/.local/share/vault/vault.sec index 60a05d2..3e05999 100644 Binary files a/.local/share/vault/vault.sec and b/.local/share/vault/vault.sec differ -- cgit v1.2.3