summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-01-22 01:46:15 +0000
committerGitHub <noreply@github.com>2022-01-22 01:46:15 +0000
commit29b7b59ffd1b0dfad10c74b5daa6ff67954261b9 (patch)
tree3e2dc0cc8a43a9105eca32b5cce0f44e6e0e4def /bin
parentc0758e17517afd9c4f1860c2b720089af79595fa (diff)
parenta82a86c310bbe2c3a71ff4da3b9ed635fed4e06d (diff)
Merge pull request #804 from epsilon-0/master
add GPG WKS publishing functionality
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mw2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mw b/bin/mw
index 26d2e49..04361fc 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; $prefix/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>$prefix/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"