diff options
Diffstat (limited to 'dot.local-bin-sm')
| -rwxr-xr-x | dot.local-bin-sm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dot.local-bin-sm b/dot.local-bin-sm index c0fd090..6ac1983 100755 --- a/dot.local-bin-sm +++ b/dot.local-bin-sm @@ -1,7 +1,7 @@ #!/bin/sh set -e case $(hostname -s) in - naboo) + crait|naboo) format='%u%r %3n %10d %17f %22F %t %i%S' ;; *) @@ -11,13 +11,13 @@ esac set -x mbsync -a || true notmuch new +notmuch tag -new_cache -- tag:new_cache [ -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" +notmuch tag +new_cache -- tag:new +[ "$(notmuch count tag:new)" -eq 0 ] && exit notmuch tag -new -- tag:new and folder:GMail/mail nm-tagger export MAILSEQ="${MBLAZE:-$HOME/.mblaze}/seq.sm" export MBLAZE_PAGER="" -msearch -- --exclude=false query:new | mthread | mseq -S | mscan -f "$format" +msearch -- --exclude=false tag:new_cache | mthread | mseq -S | mscan -f "$format" type mu > /dev/null && mu index || true |
