aboutsummaryrefslogtreecommitdiff
path: root/dot.local-bin-sm
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2020-07-26 19:22:09 +0200
committerThomas Schneider <qsx@chaotikum.eu>2020-07-26 19:22:09 +0200
commitb74122b5a732a8d02de0d1b550bc7f49baa21a7b (patch)
tree9f5a26211dcf9edb135a8c0dd132987c21c6c5b1 /dot.local-bin-sm
parent37b7ca9391e335cb609bcebd9cc17936b5b9a5be (diff)
sm: Allow gmi to fail
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 c519299..63101ae 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"