diff options
Diffstat (limited to 'dotfiles/Mail/.notmuch/hooks/pre-new')
-rwxr-xr-x | dotfiles/Mail/.notmuch/hooks/pre-new | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/dotfiles/Mail/.notmuch/hooks/pre-new b/dotfiles/Mail/.notmuch/hooks/pre-new deleted file mode 100755 index 151dc85..0000000 --- a/dotfiles/Mail/.notmuch/hooks/pre-new +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# Delete mail -#notmuch search --output=files tag:deleted | xargs -rl rm - -# Move marked spam to spam folder -notmuch search --output=files path:FSF/** AND NOT folder:FSF/INBOX.Spam \ - AND tag:spam | xargs -I '{}' mv '{}' ~/Mail/FSF/INBOX.Spam/cur - -# Delete spam after one week -notmuch tag +deleted -- tag:spam AND date:..one_week - -# Delete commits after one month -notmuch tag +deleted -- tag:commits AND date:..one_month - -# Move mail from archive to inbox -notmuch search --output=files --duplicate=1 NOT tag:archive AND \ - folder:WSU/Archive \ - | xargs -I '{}' mv '{}' ~/Mail/WSU/INBOX/cur - -# Move mail from inbox to archive -notmuch search --output=files --duplicate=1 tag:archive AND \ - NOT folder:WSU/Archive \ - | xargs -I '{}' mv '{}' ~/Mail/WSU/Archive/cur - -exit 0 |