From ba1590bba3d0a18600c8cf3f1b3d4b46165c150f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 7 Apr 2024 00:20:58 -0700 Subject: [PATCH] Automatically delete some old GoG promotional emails --- notmuch/.config/notmuch/default/hooks/post-new | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))