From a8f535d3653fcd6da017b32a3328d69fc8650f5d Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 1 Jan 2023 18:07:13 +0000 Subject: Add tag-mail --- notmuch/.local/bin/tag-mail | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 notmuch/.local/bin/tag-mail diff --git a/notmuch/.local/bin/tag-mail b/notmuch/.local/bin/tag-mail new file mode 100755 index 0000000..172a685 --- /dev/null +++ b/notmuch/.local/bin/tag-mail @@ -0,0 +1,40 @@ +#!/bin/bash + +date +mbsync imperial mailbox + +notmuch new + +notmuch tag --batch <" or from:"ACM Learning Center" or from:"CGCU Secretary" or from:"DoCSoc" or subject:"[HiPEAC Members]" or (subject:"Your Casual pay form for" or subject:"claim for") or from:"email.teams.microsoft.com") + +-new +newyorker -- tag:new and from:"newyorker@newsletter.newyorker.com" + ++me -- tag:new and (to:yann@ymhg.org or to:yann@yannherklotz.com) ++git -- tag:new and to:git@yannherklotz.com + +-new +amazon.co.uk -- tag:new and to:amazon.co.uk@ymhg.org + ++list -- tag:new and List:* +-new +list/ntg-context -- tag:new and List:ntg-context.ntg.nl +-new +list/dev-context -- tag:new and List:dev-context.ntg.nl +-new +list/emacs-devel -- tag:new and List:emacs-devel.gnu.org + +-new +inbox -- tag:new + +EOF -- cgit