diff options
| author | Thomas Schneider <qsx@chaotikum.eu> | 2020-04-17 13:27:25 +0200 |
|---|---|---|
| committer | Thomas Schneider <qsx@chaotikum.eu> | 2020-04-17 13:30:06 +0200 |
| commit | 6661cd7bdbbe40ce325d0aaadabb9bb80aaef969 (patch) | |
| tree | e512a9cafd9ff8a1d867909a78137fb65872f87b /dot.local-bin-sm | |
| parent | ddadb27ed3e68c31b4b23fbc163d90db319d6fbf (diff) | |
Add nm-tagger and adapt sm
Diffstat (limited to 'dot.local-bin-sm')
| -rwxr-xr-x | dot.local-bin-sm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dot.local-bin-sm b/dot.local-bin-sm index cdea8e4..c519299 100755 --- a/dot.local-bin-sm +++ b/dot.local-bin-sm @@ -3,10 +3,13 @@ set -e set -x mbsync -a || true notmuch new +[ -d ~/.maildir/GMail ] && (cd ~/.maildir/GMail && gmi sync) new=$(notmuch search --output=messages tag:new | xargs) [ -z "$new" ] && exit -afew -tnvv +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 $new | mthread | mseq -S | mscan -f '%u%r %3n %10d %17f %8F %t %i%S' -type mu 2> /dev/null && mu index || true +msearch -- --exclude=false query:new | mthread | mseq -S | mscan -f '%u%r %3n %10d %17f %8F %t %i%S' +type mu > /dev/null && mu index || true |
