mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 94f0044975df7173ec65dfadfd37dfbc64d7c204
parent 21e98500ea608dec89c1a9fdd41fcaa5d96b5531
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 26 Jul 2018 16:23:32 +0200

do not ask for passphrase when indexing with notmuch

Diffstat:
my-pinentry | 3+++
notmuch-new.sh | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/my-pinentry b/my-pinentry @@ -8,6 +8,9 @@ case $PINENTRY_USER_DATA in gtk) exec /usr/bin/pinentry-gtk-2 "$@" ;; +none) + exit 1 # do not ask for passphrase + ;; *) exec /usr/bin/pinentry-curses "$@" esac diff --git a/notmuch-new.sh b/notmuch-new.sh @@ -8,7 +8,7 @@ then do nice ionice -c 3 chrt --idle 0 /bin/sh -c "notmuch new && afew --tag --new" # in case an encryption key is now available - nice ionice -c 3 chrt --idle 0 /bin/sh -c "notmuch reindex tag:encrypted and not property:index.decryption=success" < /dev/null + nice ionice -c 3 chrt --idle 0 /bin/sh -c "PINENTRY_USER_DATA=none notmuch reindex tag:encrypted and not property:index.decryption=success" < /dev/null sleep 1 inotifywait $NEW_MAIL done