aboutsummaryrefslogtreecommitdiff
path: root/dot.local-bin-sm
diff options
context:
space:
mode:
Diffstat (limited to 'dot.local-bin-sm')
-rwxr-xr-xdot.local-bin-sm2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot.local-bin-sm b/dot.local-bin-sm
index 618392e..8c3f4f4 100755
--- a/dot.local-bin-sm
+++ b/dot.local-bin-sm
@@ -3,7 +3,7 @@ set -e
set -x
mbsync -a || true
notmuch new
-[ -d ~/.maildir/GMail ] && (cd ~/.maildir/GMail && gmi sync)
+[ -d ~/.maildir/GMail ] && (cd ~/.maildir/GMail && gmi sync || true)
new=$(notmuch search --output=messages tag:new | xargs)
[ -z "$new" ] && exit
notmuch config set query.new "$new"