aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bin/checkmail.sh
blob: c823b94cf72e4c8b2620cdd4a54e2ba97a88b06d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
source ~/.virtualenvs/lieer/bin/activate
parallel gmi sync --no-progress -C ::: ~/.mail/jason_zzq.gmail ~/.mail/jason_hitched.gmail
#cd ~/.mail/jason_zzq.gmail && gmi sync
#cd ~/.mail/jason_hitched.gmail && gmi sync
#cd ~

notmuch tag -important \*
notmuch tag -inbox -unread "tag:trash"
notmuch tag -inbox -unread "tag:spam"

notmuch tag +hitched "folder:/.*jason_hitched\.gmail/"
notmuch tag -hitched -inbox "tag:debezium"
notmuch tag -hitched -inbox "tag:/github\/.*/"

notmuch tag +zzq "folder:/.*jason_zzq\.gmail/"
notmuch tag -inbox "tag:zzq and tag:fsf"       # don't put fsf newsletter in inbox
notmuch tag -inbox "tag:zzq and tag:pycoders"  # don't put pycoders newsletter in inbox