syncmail (544B)
1 #!/bin/sh 2 3 # notmuch search --output=files tag:archive | \ 4 # xargs -I {} sh -c 'mv {} ~/mail/archive/cur/$(basename $(echo {} | sed 's/,.*$//g'))' 5 # notmuch tag -archive +archived -- tag:archive 6 7 notmuch search --output=files --format=text0 tag:delete | xargs -r0 rm 8 9 mbsync -a 10 notmuch new 11 12 notmuch tag +assyst -- from:assyst@hoist.tech and tag:new 13 14 notmuch tag -new +inbox +unread +work -- path:work/** and tag:new 15 notmuch tag -new +inbox +unread +personal -- path:personal/** and tag:new 16 17 notmuch tag +inbox +unread +unknown -new -- tag:new