summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <floss@bsd.ac>2021-12-31 22:55:01 +0000
committerAisha Tammy <floss@bsd.ac>2021-12-31 22:55:01 +0000
commit37c91057f78542e8970cf7698c0c1588153c30f2 (patch)
treeaf64843c0360ef1e9262b963332da5b98a9731f9
parente6087481ad26e7a328a11d9537dcce18982bbc5e (diff)
add GPG WKS publishing functionality
Signed-off-by: Aisha Tammy <floss@bsd.ac>
-rwxr-xr-xbin/mw2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mw b/bin/mw
index d3129e7..fee8974 100755
--- a/bin/mw
+++ b/bin/mw
@@ -108,6 +108,8 @@ set trash = "+Trash"
set record = "+Sent"
$extra
$synccmd
+macro index \eg \"<enter-command>unset wait_key<enter><shell-escape>gpg --list-secret-keys; printf 'Enter email ID of user to publish: '; read eID; printf 'Enter fingerprint of GPG key to publish: '; read eFGPT; /usr/local/libexec/gpg-wks-client --create \\\$eFGPT \\\$eID | msmtp --read-envelope-from --read-recipients -a $fulladdr<enter>\" \"publish GPG key to WKS provider\"
+macro index \eh \"<pipe-message>/usr/local/libexec/gpg-wks-client --receive | msmtp --read-envelope-from --read-recipients -a $fulladdr<enter>\" \"confirm GPG publication\"
" > "$accdir/$fulladdr.muttrc"
[ ! -f "$muttrc" ] && echo "# vim: filetype=neomuttrc" > "$muttrc"