#!/bin/sh # notmuch search --output=files tag:archive | \ # xargs -I {} sh -c 'mv {} ~/mail/archive/cur/$(basename $(echo {} | sed 's/,.*$//g'))' # notmuch tag -archive +archived -- tag:archive notmuch search --output=files --format=text0 tag:delete | xargs -r0 rm mbsync -a notmuch new notmuch tag +assyst -- from:assyst@hoist.tech and tag:new notmuch tag -new +inbox +unread +work -- path:work/** and tag:new notmuch tag -new +inbox +unread +personal -- path:personal/** and tag:new notmuch tag +inbox +unread +unknown -new -- tag:new