From cb0df2b7d23a5848a0130a3a0232509015986450 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 1 Nov 2025 15:12:39 +0000 Subject: gnus: fixes for notmuch thread search --- custom/jao-custom-gnus.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'custom/jao-custom-gnus.el') diff --git a/custom/jao-custom-gnus.el b/custom/jao-custom-gnus.el index 7483e39..b3e1cb6 100644 --- a/custom/jao-custom-gnus.el +++ b/custom/jao-custom-gnus.el @@ -32,6 +32,9 @@ (setq gnus-uncacheable-groups "^nnml") +;;; private config +(require 'jao-gnus-private nil t) + ;;; looks ;;;; verbosity (setq gnus-verbose 4) @@ -227,7 +230,7 @@ (add-to-list ;; `(nnml "" ,(jao-recoll-gnus-search-engine (jao-gnus-dir "Mail/"))) 'gnus-secondary-select-methods - `(nnml "" (gnus-search-engine gnus-search-notmuch + `(nnml "" (gnus-search-engine gnus-search-jao-notmuch (remove-prefix ,prefix)))))) (when jao-gnus-use-nnml @@ -302,7 +305,7 @@ gnus-refer-thread-use-search t gnus-summary-make-false-root 'adopt gnus-summary-gather-subject-limit nil ;; 120 - gnus-summary-thread-gathering-function #'gnus-gather-threads-by-subject + gnus-summary-thread-gathering-function #'gnus-gather-threads-by-references gnus-sort-gathered-threads-function 'gnus-thread-sort-by-date gnus-thread-sort-functions '(gnus-thread-sort-by-date)) @@ -310,7 +313,7 @@ (let ((references (mail-header-references header))) (setf (mail-header-references header) (mapconcat #'(lambda (x) - (if (string-match "protonmail.internalid" x) "" x)) + (if (string-match-p "protonmail.internalid" x) "" x)) (gnus-split-references references) " ")) header)) @@ -369,7 +372,8 @@ "ElDiario.es - ElDiario.es: " "The Guardian: " "Aeon | a world of ideas: " - "Planet Debian: ")) + "Planet Debian: " + " via The Rust Programming Language Forum")) "\\|The Conversation – Articles (.+): " "\\|unofficial mirror of [^:]+: " "\\|[gq].+ updates on arXiv.org: ")) -- cgit v1.2.3