diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-07-13 23:43:33 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-07-16 22:11:38 +0200 |
commit | 02065d1d50ad2fa0afb9d3e970a56b99e8e38077 (patch) | |
tree | 247ccd236be36e96418eb98dee1ec31165c412d5 /tag-emails | |
parent | eb6f56b907ba31131a21048f1b55d2a020536560 (diff) | |
download | bin-02065d1d50ad2fa0afb9d3e970a56b99e8e38077.tar.xz |
add tag-emails script
Diffstat (limited to 'tag-emails')
-rwxr-xr-x | tag-emails | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tag-emails b/tag-emails new file mode 100755 index 0000000..b64be1e --- /dev/null +++ b/tag-emails @@ -0,0 +1,50 @@ +#!/usr/bin/env bash +set -o errexit +set -o pipefail + +notmuch tag --batch <<EOF ++inbox -- folder:inbox and tag:unread +-inbox -- not folder:inbox + ++sent -- folder:sent +-sent -- not folder:sent + ++archive -- folder:archive +-archive -- not folder:archive + ++drafts -- folder:drafts +-drafts -- not folder:drafts + ++spam -- folder:spam +-spam -- not folder:spam + ++trash -- folder:trash +-trash -- not folder:trash + + ++learn-ham -- folder:learn-ham +-learn-ham -- not folder:learn-ham + ++learn-spam -- folder:learn-spam +-learn-spam -- not folder:learn-spam + + ++arch-bugs -- folder:arch-bugs ++arch-dev-public -- folder:arch-dev-public ++arch-mirrors -- folder:arch-mirrors ++arch-women -- folder:arch-women ++aur-dev -- folder:aur-dev ++aur-general -- folder:aur-general ++aur-requests -- folder:aur-requests ++ccna -- folder:ccna ++isync-devel -- folder:isync-devel ++johannes-lothberg-gmail -- folder:johannes-lothberg-gmail ++openldap-technical -- folder:openldap-technical ++opensmtpd -- folder:opensmtpd ++openssh-unix-dev -- folder:openssh-unix-dev ++pacman-dev -- folder:pacman-dev ++ajatt -- folder:ajatt ++lojban -- folder:lojban ++git -- folder:git + +EOF |