diff options
| author | Thomas Schneider <qsx@qsx.re> | 2018-05-07 17:44:41 +0200 |
|---|---|---|
| committer | Thomas Schneider <qsx@qsx.re> | 2018-05-07 17:44:41 +0200 |
| commit | bea27c1328f1a766a3f6c0f6ebbb1fd1184c5c6a (patch) | |
| tree | 5525e66a8d78ec34de515988a06cbafabb1f5dee /dot.local-bin-sm | |
| parent | fc689756b80f1a817c1f82929cdfd90d7be92acf (diff) | |
sm: Exit early if there is no new mail
Diffstat (limited to 'dot.local-bin-sm')
| -rwxr-xr-x | dot.local-bin-sm | 1 |
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 |
