From 30d591f40939dfa2fa3a3b5aee9e666b7686b87b Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 11 Mar 2022 21:18:32 +0000 Subject: automatic notmuch tagging on gnus' moves --- gnus.org | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'gnus.org') diff --git a/gnus.org b/gnus.org index a907ccf..2fd5d99 100644 --- a/gnus.org +++ b/gnus.org @@ -531,16 +531,10 @@ (gnus-summary-goto-article (cdr jao-gnus--last-move) nil t))) (add-hook 'gnus-summary-article-move-hook 'jao-gnus-move-hook) - (defun jao-gnus--tag-archiving () - (when (string-match ".+:\\(.+\\)" jao-gnus--archiving-group) - (let ((tags (match-string 1 jao-gnus--archiving-group))) - (jao-notmuch-gnus-toggle-tags (split-string tags "\\."))))) - (defun jao-gnus-archive (follow) (interactive "P") (if jao-gnus--archiving-group (progn - (jao-gnus--tag-archiving) (if (or jao-gnus--archive-as-copy-p (not (gnus-check-backend-function 'request-move-article gnus-newsgroup-name))) @@ -648,7 +642,9 @@ ;; no html in From: (washing articles from arxiv feeds) and cleaning up ;; addresses (require 'shr) - (defvar jao-gnus--from-rx (concat "From: \\\"?\\( " jao-gnus--news-rx "\\)")) + (defvar jao-gnus--from-rx + (concat "From: \\\"?\\( " jao-gnus--news-rx "\\)")) + (defun jao-gnus-remove-anchors () (save-excursion (goto-char (point-min)) -- cgit v1.2.3