diff options
Diffstat (limited to 'scripts/syncmail')
| -rwxr-xr-x | scripts/syncmail | 17 |
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 |
