aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-09-05 19:10:13 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-09-05 19:10:13 -0500
commit6e02f366c9c852401d51fe1b6458e7418073c180 (patch)
tree13c3c9862f92c423ff2e0d65d690c52e55001d16
parent8b00ad391fdbac4208cc89cf34e0f41a75d0c2b7 (diff)
fix(notmuch): temp revert afew config, plan to ...
replace afew with custom scripts soon.
-rw-r--r--notmuch/.config/afew/config5
-rw-r--r--notmuch/.config/notmuch/default/config2
-rwxr-xr-xnotmuch/.config/notmuch/default/hooks/post-new2
3 files changed, 7 insertions, 2 deletions
diff --git a/notmuch/.config/afew/config b/notmuch/.config/afew/config
index af49a4d..ce67e60 100644
--- a/notmuch/.config/afew/config
+++ b/notmuch/.config/afew/config
@@ -3,6 +3,11 @@
[KillThreadsFilter]
[SentMailsFilter]
sent_tag = sent
+[Filter.0]
+message = notify
+query = tag:new
+tags_blacklist = killed;spam
+tags = +notify
[InboxFilter]
[MailMover]
folders = tobyvin.dev/tobyv/INBOX tobyvin.dev/tobyv/Archive tobyvin.dev/tobyv/Junk
diff --git a/notmuch/.config/notmuch/default/config b/notmuch/.config/notmuch/default/config
index 530b1bb..75f4f5f 100644
--- a/notmuch/.config/notmuch/default/config
+++ b/notmuch/.config/notmuch/default/config
@@ -5,7 +5,7 @@ name=Toby Vincent
primary_email=tobyv@tobyvin.dev
other_email=postmaster@tobyvin.dev;hostmaster@tobyvin.dev;webmaster@tobyvin.dev;tobyv13@gmail.com;tovince@siue.edu;
[new]
-tags=new;notify
+tags=new
ignore=.mbsyncstate;.uidvalidity;addressbook.tsv;mujmap.toml;
[maildir]
synchronize_flags=true
diff --git a/notmuch/.config/notmuch/default/hooks/post-new b/notmuch/.config/notmuch/default/hooks/post-new
index 70c4dae..6f4c03f 100755
--- a/notmuch/.config/notmuch/default/hooks/post-new
+++ b/notmuch/.config/notmuch/default/hooks/post-new
@@ -1,4 +1,4 @@
#!/bin/sh
-~/.local/lib/notmuch/notmuch-notify.py
afew -C "$XDG_CONFIG_HOME"/notmuch/default/config --tag --new
+~/.local/lib/notmuch/notmuch-notify.py