blob: 6ac1983d044758f64b9f441f25664188d2669575 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
case $(hostname -s) in
crait|naboo)
format='%u%r %3n %10d %17f %22F %t %i%S'
;;
*)
format='%u%r %3n %10d %17f %8F %t %i%S'
;;
esac
set -x
mbsync -a || true
notmuch new
notmuch tag -new_cache -- tag:new_cache
[ -d ~/.maildir/GMail ] && (cd ~/.maildir/GMail && gmi sync || true)
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 tag:new_cache | mthread | mseq -S | mscan -f "$format"
type mu > /dev/null && mu index || true
|