aboutsummaryrefslogtreecommitdiffstats
path: root/notmuch
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-07-02 00:05:21 -0700
committerGravatar Tom Willemse2022-09-22 23:52:01 -0700
commit7c25252663e1d4d37ea2da35906589a44f21c31a (patch)
treef419987e4b9bd1194aba6298246440285698478b /notmuch
parent02a48a7c8ab05ab9444c116d6b0b263e06a866f2 (diff)
downloadnew-dotfiles-7c25252663e1d4d37ea2da35906589a44f21c31a.tar.gz
new-dotfiles-7c25252663e1d4d37ea2da35906589a44f21c31a.zip
[notmuch] Add some tags to incoming email
Diffstat (limited to 'notmuch')
-rwxr-xr-xnotmuch/.config/notmuch/default/hooks/post-new5
-rwxr-xr-xnotmuch/usr/bin/notmuch-tag-mailinglists15
2 files changed, 18 insertions, 2 deletions
diff --git a/notmuch/.config/notmuch/default/hooks/post-new b/notmuch/.config/notmuch/default/hooks/post-new
index 28ba263..4def978 100755
--- a/notmuch/.config/notmuch/default/hooks/post-new
+++ b/notmuch/.config/notmuch/default/hooks/post-new
@@ -4,5 +4,6 @@ IFS=" "
exec scsh -e main -s "$0" "$@"
!#
-(define (main . args)
- (run (notmuch-collect-tasks ,(format #f "~a/documents/gtd/inbox.org" (getenv "HOME")))))
+(define (main args)
+ (run (notmuch-collect-tasks ,(format #f "~a/documents/gtd/inbox.org" (getenv "HOME"))))
+ (run (notmuch-tag-mailinglists)))
diff --git a/notmuch/usr/bin/notmuch-tag-mailinglists b/notmuch/usr/bin/notmuch-tag-mailinglists
new file mode 100755
index 0000000..148988c
--- /dev/null
+++ b/notmuch/usr/bin/notmuch-tag-mailinglists
@@ -0,0 +1,15 @@
+#!/usr/bin/env sh
+# -*- mode: scheme; -*-
+IFS=" "
+exec scsh -e main -s "$0" "$@"
+!#
+
+(define (main args)
+ (run (notmuch tag +help-gnu-emacs to:help-gnu-emacs@gnu.org))
+ (run (notmuch tag +help-guix to:help-guix@gnu.org))
+ (run (notmuch tag +gnu-emacs-sources to:gnu-emacs-sources@gnu.org))
+ (run (notmuch tag +guile-user to:guile-user@gnu.org))
+ (run (notmuch tag +emacs-devel to:emacs-devel@gnu.org))
+ (run (notmuch tag +conkeror to:conkeror@freelists.org))
+ (run (notmuch tag +arch-announce to:arch-announce@archlinux.org))
+ (run (notmuch tag +info-gnu-emacs to:info-gnu-emacs@gnu.org)))