summaryrefslogtreecommitdiffstats
path: root/notmuch/mail
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2017-07-30 20:32:40 -0400
committerAmin Bandali <amin@aminb.org>2017-07-30 20:32:40 -0400
commit1dbe5f7f362ca5dbaf0ddd9a6dfe5cac0722eae0 (patch)
tree56d11cbf94fb7d2517cec0a036c9081b43adb8ed /notmuch/mail
parentd0ef45b98046da3440ba9db8b51fccbf19c05bdf (diff)
downloadconfigs-1dbe5f7f362ca5dbaf0ddd9a6dfe5cac0722eae0.tar.gz
configs-1dbe5f7f362ca5dbaf0ddd9a6dfe5cac0722eae0.tar.xz
configs-1dbe5f7f362ca5dbaf0ddd9a6dfe5cac0722eae0.zip
[notmuch] Properly tag emails from mailing lists
I tried to do this with `afew` but couldn't get it to work reliably, so I just went with `notmuch tag`.
Diffstat (limited to 'notmuch/mail')
-rwxr-xr-xnotmuch/mail/.notmuch/hooks/post-new6
1 files changed, 6 insertions, 0 deletions
diff --git a/notmuch/mail/.notmuch/hooks/post-new b/notmuch/mail/.notmuch/hooks/post-new
index 4be7355..63b2e2f 100755
--- a/notmuch/mail/.notmuch/hooks/post-new
+++ b/notmuch/mail/.notmuch/hooks/post-new
@@ -1,2 +1,8 @@
#!/bin/sh
afew -tn
+
+# apply tags to lists
+notmuch tag +lists +lists/deepspec -- folder:amin/lists/.deepspec
+notmuch tag +lists +lists/haskell-cafe -- folder:amin/lists/.haskell-cafe
+notmuch tag +lists +lists/haskell-weekly -- folder:amin/lists/.haskell-weekly
+notmuch tag +lists +lists/hackernewsletter -- folder:amin/lists/.hackernewsletter