summaryrefslogtreecommitdiff
path: root/scripts/syncmail
diff options
context:
space:
mode:
authorJake Koroman <jake@jakekoroman.com>2025-06-01 10:55:23 -0400
committerJake Koroman <jake@jakekoroman.com>2025-06-01 10:55:23 -0400
commit3b4590b1a745b06ce36cb558a4749923675e9b35 (patch)
tree532e9f00ae0b7fdeb3645f13b926e8a65b74f1ec /scripts/syncmail
Ready. Set. Go!
Diffstat (limited to 'scripts/syncmail')
-rwxr-xr-xscripts/syncmail17
1 files changed, 17 insertions, 0 deletions
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