diff options
author | Tom Willemse | 2024-04-07 00:20:58 -0700 |
---|---|---|
committer | Tom Willemse | 2024-04-07 00:20:58 -0700 |
commit | ba1590bba3d0a18600c8cf3f1b3d4b46165c150f (patch) | |
tree | 8715684a6f7d4a5b47dfc46dcc5fdba8207d23bb | |
parent | d7b912555ca02e002375f6f733f94f8470e2a82c (diff) | |
download | new-dotfiles-ba1590bba3d0a18600c8cf3f1b3d4b46165c150f.tar.gz new-dotfiles-ba1590bba3d0a18600c8cf3f1b3d4b46165c150f.zip |
Automatically delete some old GoG promotional emails
-rwxr-xr-x | notmuch/.config/notmuch/default/hooks/post-new | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch/.config/notmuch/default/hooks/post-new b/notmuch/.config/notmuch/default/hooks/post-new index 01822a5..7009d17 100755 --- a/notmuch/.config/notmuch/default/hooks/post-new +++ b/notmuch/.config/notmuch/default/hooks/post-new @@ -7,4 +7,5 @@ exec scsh -e main -s "$0" "$@" (define (main args) (run (notmuch-collect-tasks ,(format #f "~a/documents/gtd/inbox.org" (getenv "HOME")))) (run (notmuch-tag-mailinglists)) - (run (notmuch tag "+@me" "(" to:tom@ryuslash.org or to:ryuslash@gmail.com ")" and not tag:@me))) + (run (notmuch tag "+@me" "(" to:tom@ryuslash.org or to:ryuslash@gmail.com ")" and not tag:@me)) + (run (notmuch tag "+deleted" from:gog.com and "subject:expires in 24" and date:..24-hours-ago))) |