aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-04-07 00:20:58 -0700
committerGravatar Tom Willemse2024-04-07 00:20:58 -0700
commitba1590bba3d0a18600c8cf3f1b3d4b46165c150f (patch)
tree8715684a6f7d4a5b47dfc46dcc5fdba8207d23bb
parentd7b912555ca02e002375f6f733f94f8470e2a82c (diff)
downloadnew-dotfiles-ba1590bba3d0a18600c8cf3f1b3d4b46165c150f.tar.gz
new-dotfiles-ba1590bba3d0a18600c8cf3f1b3d4b46165c150f.zip
Automatically delete some old GoG promotional emails
-rwxr-xr-xnotmuch/.config/notmuch/default/hooks/post-new3
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)))