commit 65c8ba6d85c02df70ecfc6b395d0d06b81f6a2cc
parent 1ccc8fa8c499b0938cfd4cf4bf522b41ea2a6aa3
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date: Wed, 3 Feb 2021 18:49:10 +0100
Make summary buffers less noisy
By recognizing more "reply-cruft".
From a cursory glance at Emacs sources, the capture groups in the
default value are not used, so I see no need to preserve them.
Diffstat:
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/.gnus b/.gnus
@@ -40,7 +40,18 @@
((gnus-seconds-year)
. "%b %d")
(t
- . "%F")))
+ . "%F"))
+ ;; Add to the list of reply prefixes:
+ ;; - AW
+ ;; - no-break spaces
+ ;; - bug#NNN
+ ;; - [External]
+ message-subject-re-regexp (rx bol (+ (* space)
+ (or "re" "Re" "RE"
+ "aw" "Aw" "AW"
+ (seq "bug#" (+ digit))
+ (seq "[" (+ word) "]"))
+ (? (* space) ":" (* space)))))
(let* ((initials (mapconcat (lambda (s) (substring s 0 1))
(split-string user-full-name)