reflect ideas from vdirsyncer in notmuch

This commit is contained in:
Felix Van der Jeugt 2018-08-13 14:02:09 +02:00
parent 810e1ae548
commit 4ec14229e3
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ ip route ls | grep -v '' && exit 1
# check if the gpg-agent is running
pgrep gpg-agent >/dev/null || exit 2
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
notmuch --config="$HOME/.notmuch-config" new --quiet 2>&1 \
| grep -v "Ignoring" \
| xargs -0 --no-run-if-empty notify-send \
&& exec sleep 3m