From 7be8765df1efdb3276915cedafd82bb059bd4de4 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 6 May 2022 00:42:45 +0100 Subject: email nits --- lib/net/jao-notmuch-gnus.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/net') diff --git a/lib/net/jao-notmuch-gnus.el b/lib/net/jao-notmuch-gnus.el index c64b9f0..e18c5a1 100644 --- a/lib/net/jao-notmuch-gnus.el +++ b/lib/net/jao-notmuch-gnus.el @@ -96,8 +96,9 @@ (notmuch-tag (concat "id:" id) (mapcar (lambda (x) (concat "+" x)) to-tags))))) -(add-hook 'gnus-summary-article-move-hook #'jao-notmuch-gnus-tag-on-move) -(add-hook 'gnus-summary-article-expire-hook #'jao-notmuch-gnus-tag-on-move) +(defun jao-notmuch-gnus-auto-tag () + (add-hook 'gnus-summary-article-move-hook #'jao-notmuch-gnus-tag-on-move) + (add-hook 'gnus-summary-article-expire-hook #'jao-notmuch-gnus-tag-on-move)) ;;;; Displaying search results in Gnus @@ -112,7 +113,7 @@ "Directory where leafnode stores its messages as seen by notmuch.") (defun jao-notmuch-gnus-file-to-group (file &optional maildir newsdir) - "Calculate the Gnus group name from the given file name. + "Compute the Gnus group name from the given file name. Example: IN: /home/jao/var/mail/jao/foo/cur/1259184569.M4818P3384.localhost,W=6921:2,S -- cgit v1.2.3