From bea27c1328f1a766a3f6c0f6ebbb1fd1184c5c6a Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Mon, 7 May 2018 17:44:41 +0200 Subject: sm: Exit early if there is no new mail --- dot.local-bin-sm | 1 + 1 file changed, 1 insertion(+) diff --git a/dot.local-bin-sm b/dot.local-bin-sm index e830aca..0e02303 100755 --- a/dot.local-bin-sm +++ b/dot.local-bin-sm @@ -4,5 +4,6 @@ set -x mbsync -a || true notmuch new new=$(notmuch search --output=messages tag:new | xargs) +[ -z "$new" ] && exit afew -tnvv notmuch search --exclude=false $new -- cgit v1.2.3