aboutsummaryrefslogtreecommitdiffstats
path: root/notmuch
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-09-22 23:00:37 -0700
committerGravatar Tom Willemse2022-09-22 23:52:35 -0700
commit13632db6a55599f613e66d72875ac612f13c8da5 (patch)
tree537c22da0f45669042bab312cd3df875ac2a8251 /notmuch
parent4b9be17cd4b11c14d44cd06c862fb44f4faf63c0 (diff)
downloadnew-dotfiles-13632db6a55599f613e66d72875ac612f13c8da5.tar.gz
new-dotfiles-13632db6a55599f613e66d72875ac612f13c8da5.zip
[notmuch] Make tasks for some Alwaysdata messages
Diffstat (limited to 'notmuch')
-rwxr-xr-xnotmuch/usr/bin/notmuch-collect-tasks6
1 files changed, 4 insertions, 2 deletions
diff --git a/notmuch/usr/bin/notmuch-collect-tasks b/notmuch/usr/bin/notmuch-collect-tasks
index 4eff658..0315971 100755
--- a/notmuch/usr/bin/notmuch-collect-tasks
+++ b/notmuch/usr/bin/notmuch-collect-tasks
@@ -6,7 +6,9 @@ exec scsh -e main -s "$0" "$@"
(define message-query
'(from:fidobill@fidomobile.ca
- and "subject:Your Fido bill is ready"))
+ and "subject:Your Fido bill is ready"
+ or "subject:[alwaysdata] Negative balance to settle"
+ or "subject:[alwaysdata] Automatic renewal of domains impossible"))
(define processed-tag-name "processed")
@@ -28,7 +30,7 @@ exec scsh -e main -s "$0" "$@"
(let ((output-file (cadr args))
(messages (run/sexp
(notmuch search --format=sexp
- ,@message-query
+ "(" ,@message-query ")"
and not ,(format #f "tag:~a" processed-tag-name)))))
(with-current-output-port
(open-output-file output-file (file-options create append))