aboutsummaryrefslogtreecommitdiff
path: root/dot.local-bin-sm
blob: 8c3f4f4da636802aa27844c56007492781d47936 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e
set -x
mbsync -a || true
notmuch new
[ -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 -- 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 '%u%r %3n %10d %17f %20F %t %i%S'
type mu > /dev/null && mu index || true