aboutsummaryrefslogtreecommitdiff
path: root/dot.local-bin-sm
diff options
context:
space:
mode:
authorThomas Schneider <qsx@qsx.re>2018-05-07 17:44:41 +0200
committerThomas Schneider <qsx@qsx.re>2018-05-07 17:44:41 +0200
commitbea27c1328f1a766a3f6c0f6ebbb1fd1184c5c6a (patch)
tree5525e66a8d78ec34de515988a06cbafabb1f5dee /dot.local-bin-sm
parentfc689756b80f1a817c1f82929cdfd90d7be92acf (diff)
sm: Exit early if there is no new mail
Diffstat (limited to 'dot.local-bin-sm')
-rwxr-xr-xdot.local-bin-sm1
1 files changed, 1 insertions, 0 deletions
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