From af5861569bf84572c318a630eca07ad657868612 Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20Le=20Gouguec?= Date: Sun, 19 Jul 2020 04:34:22 +0200 Subject: [PATCH] Simplify dummy root subject before comparing it to the current article * lisp/gnus/gnus-sum.el (gnus-summary-prepare-threads): Simplify both the dummy root and the following article before comparing them, otherwise both the former and the latter might display the thread's subject even when gnus-summary-line-format contains "%s" (bug#40520). --- lisp/gnus/gnus-sum.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 341f04ad772..1b0220a0f06 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -5352,7 +5352,8 @@ or a straight list of headers." ;; We remember that we probably want to output a dummy ;; root. (setq gnus-tmp-dummy-line gnus-tmp-header) - (setq gnus-tmp-prev-subject gnus-tmp-header)) + (setq gnus-tmp-prev-subject + (gnus-simplify-subject-fully gnus-tmp-header))) (t ;; We do not make a root for the gathered ;; sub-threads at all. -- 2.39.2