summaryrefslogtreecommitdiffhomepage
path: root/gnus.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-03-03 22:15:21 +0000
committerjao <jao@gnu.org>2022-03-03 22:17:26 +0000
commita2a9bb379e97085249287b29560f789c7ccc63a5 (patch)
tree28221c4d61bf38091552c8bb5484e61faa3c5789 /gnus.org
parent31c1da1f0722ab0b85d022062f8e5eb46564f920 (diff)
downloadelibs-a2a9bb379e97085249287b29560f789c7ccc63a5.tar.gz
elibs-a2a9bb379e97085249287b29560f789c7ccc63a5.tar.bz2
more gnus and notmuch tagging integration
Diffstat (limited to 'gnus.org')
-rw-r--r--gnus.org6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnus.org b/gnus.org
index 558b98e..c6320c8 100644
--- a/gnus.org
+++ b/gnus.org
@@ -530,10 +530,16 @@
(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)))