aboutsummaryrefslogtreecommitdiff
path: root/dot.local-bin-sm
diff options
context:
space:
mode:
authorThomas Schneider <qsx@qsx.re>2019-07-21 18:32:06 +0200
committerThomas Schneider <qsx@qsx.re>2019-07-21 18:32:06 +0200
commit45cddce3665361bf83de8e24b6ce3fb592bedf74 (patch)
tree9494bead07f493218d4fe372a84d92c81fb04eb9 /dot.local-bin-sm
parentcb6ec8d3efc4b9158062e8d7cc7a64e74fe061b8 (diff)
sm: Display new mails with mblaze, only run mu when available
Diffstat (limited to 'dot.local-bin-sm')
-rwxr-xr-xdot.local-bin-sm6
1 files changed, 4 insertions, 2 deletions
diff --git a/dot.local-bin-sm b/dot.local-bin-sm
index f3f9ddb..cdea8e4 100755
--- a/dot.local-bin-sm
+++ b/dot.local-bin-sm
@@ -6,5 +6,7 @@ notmuch new
new=$(notmuch search --output=messages tag:new | xargs)
[ -z "$new" ] && exit
afew -tnvv
-notmuch search --exclude=false $new
-mu index
+export MAILSEQ="${MBLAZE:-$HOME/.mblaze}/seq.sm"
+export MBLAZE_PAGER=""
+msearch -- --exclude=false $new | mthread | mseq -S | mscan -f '%u%r %3n %10d %17f %8F %t %i%S'
+type mu 2> /dev/null && mu index || true