From 3ff163f82355aba1cbd60332309209bbe5cd92c9 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Wed, 28 Jun 2023 00:39:56 +0200 Subject: email update --- shell-scripts/notmuch-hook | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 shell-scripts/notmuch-hook (limited to 'shell-scripts/notmuch-hook') diff --git a/shell-scripts/notmuch-hook b/shell-scripts/notmuch-hook new file mode 100644 index 0000000..268f315 --- /dev/null +++ b/shell-scripts/notmuch-hook @@ -0,0 +1,10 @@ +. <(pass show personal/notmuch) +notmuch new --quiet +notmuch tag -new +jobs -- from:jobs-listing* or from:jobs-noreply* +notmuch tag -new +houses -- from:"$MAKELAAR" or thread:"{$MAKELAAR}" +notmuch tag -new -inbox +dev -- from:/.*github.com/ or thread:"{from:/.*github.com/}" + +notmuch tag -new +inbox +unread -- tag:new and path:gmail/Inbox/** +notmuch tag -new +archive -- 'path:gmail/Archive/** -path:gmail/Inbox/** -path:gmail/[Gmail]/** -path:gmail/FarDrafts/** -path:gmail/Important/** -path:gmail/Sent/**' +notmuch tag --remove-all +trash -- path:gmail/Trash/** +notmuch tag --remove-all +spam -- folder:/Spam/ -- cgit v1.2.3