From 3b4590b1a745b06ce36cb558a4749923675e9b35 Mon Sep 17 00:00:00 2001 From: Jake Koroman Date: Sun, 1 Jun 2025 10:55:23 -0400 Subject: Ready. Set. Go! --- scripts/syncmail | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/syncmail (limited to 'scripts/syncmail') diff --git a/scripts/syncmail b/scripts/syncmail new file mode 100755 index 0000000..4660eae --- /dev/null +++ b/scripts/syncmail @@ -0,0 +1,17 @@ +#!/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 -- cgit v1.2.3