configuration/services/notmuch/notmuch
2018-08-13 14:04:13 +02:00

13 lines
354 B
Bash
Executable File

#!/bin/sh
# check for internet connection
ip route ls | grep -v '' && exit 1
# check if the gpg-agent is running
pgrep gpg-agent >/dev/null || exit 2
notmuch --config="$HOME/.notmuch-config" new --quiet 2>&1 \
| grep -v "Ignoring" \
| xargs -0 --no-run-if-empty notify-send \
&& exec sleep 3m