configuration/services/notmuch/notmuch

12 lines
309 B
Plaintext
Raw Normal View History

2017-06-23 11:58:13 +02:00
#!/bin/sh
# check for internet connection
ip route ls | grep -v '' && exit 1
# check if the gpg-agent is running
2017-06-29 09:37:29 +02:00
pgrep gpg-agent >/dev/null || exit 2
2017-06-23 11:58:13 +02:00
while notmuch --config="$HOME/.notmuch-config" new --quiet 2>&1 | grep -v "Ignoring" | xargs -0 --no-run-if-empty notify-send && sleep 3m; do
true
done