diff options
| author | jason | 2020-11-21 14:23:07 -0700 |
|---|---|---|
| committer | jason | 2020-11-21 14:23:07 -0700 |
| commit | 446c0865bfeddd8a631eeddf5ddd8332d794f8e9 (patch) | |
| tree | f8d7785c270287c81d3621754e6555cdbe28394c /scripts | |
| parent | 6a67cb3e664f05791f83726c3f2f972a258b8d7c (diff) | |
| download | dotfiles-446c0865bfeddd8a631eeddf5ddd8332d794f8e9.tar.gz dotfiles-446c0865bfeddd8a631eeddf5ddd8332d794f8e9.zip | |
add script to check mail with notmuch and lieer
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/bin/checkmail.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/bin/checkmail.sh b/scripts/bin/checkmail.sh new file mode 100755 index 0000000..a0fcc76 --- /dev/null +++ b/scripts/bin/checkmail.sh | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/usr/bin/env bash | ||
| 2 | parallel gmi sync --no-progress -C ::: ~/.mail/jason_zzq.gmail ~/.mail/jason_hitched.gmail | ||
| 3 | |||
| 4 | notmuch tag -important \* | ||
| 5 | |||
| 6 | notmuch tag +hitched "folder:/.*jason_hitched\.gmail/" | ||
| 7 | notmuch tag -hitched -inbox "tag:debezium" | ||
| 8 | notmuch tag -hitched -inbox "tag:/github\/.*/" | ||
| 9 | |||
| 10 | notmuch tag +zzq "folder:/.*jason_zzq\.gmail/" | ||
| 11 | notmuch tag -inbox "tag:zzq and tag:fsf" # don't put fsf newsletter in inbox | ||
| 12 | notmuch tag -inbox "tag:zzq and tag:pycoders" # don't put pycoders newsletter in inbox | ||