summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-11-01 15:12:39 +0000
committerjao <jao@gnu.org>2025-11-01 15:12:39 +0000
commitcb0df2b7d23a5848a0130a3a0232509015986450 (patch)
treeebc7e17d33db4d42433b2dea3f569df64f8926ba /custom
parent75bd2bf7d78fe3c7b6bfeebfa760b02f28fde7d5 (diff)
downloadelibs-cb0df2b7d23a5848a0130a3a0232509015986450.tar.gz
elibs-cb0df2b7d23a5848a0130a3a0232509015986450.tar.bz2
gnus: fixes for notmuch thread search
Diffstat (limited to 'custom')
-rw-r--r--custom/jao-custom-gnus.el12
1 files changed, 8 insertions, 4 deletions
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: "))