summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/mailsync6
-rw-r--r--share/mailcap1
2 files changed, 3 insertions, 4 deletions
diff --git a/bin/mailsync b/bin/mailsync
index 6128f41..a90c6c9 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -54,8 +54,7 @@ else
accounts=$*
fi
-echo " 🔃" > /tmp/imapsyncicon_"$USER"
-( pkill -RTMIN+12 "${STATUSBAR:-blocks}" >/dev/null 2>&1 ) 2>/dev/null
+( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null
# Parallelize multiple accounts
for account in $accounts
@@ -64,8 +63,7 @@ do
done
wait
-rm -f /tmp/imapsyncicon_"$USER"
-( pkill -RTMIN+12 "${STATUSBAR:-blocks}" >/dev/null 2>&1 ) 2>/dev/null
+( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null
notmuch new 2>/dev/null
diff --git a/share/mailcap b/share/mailcap
index f7a7541..5bd2471 100644
--- a/share/mailcap
+++ b/share/mailcap
@@ -5,3 +5,4 @@ image/*; openfile %s ;
video/*; setsid mpv --quiet %s &; copiousoutput
application/pdf; openfile %s ;
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
+application/pgp-keys; gpg --import '%s'; copiousoutput;