GNU bug report logs - #70054
30.0.50; Unknown ids in References: break threading

Previous Next

Package: emacs;

Reported by: "Jose A. Ortega Ruiz" <mail <at> jao.io>

Date: Thu, 28 Mar 2024 13:20:01 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andrew Cohen <acohen <at> ust.hk>
To: 70054 <at> debbugs.gnu.org
Cc: Eric Abrahamsen <eric <at> ericabrahamsen.net>, Jose A Ortega Ruiz <jao <at> gnu.org>
Subject: bug#70054: 30.0.50; Unknown ids in References: break threading
Date: Thu, 09 May 2024 15:55:11 +0800
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:

[...]

    EZ> Ping!  Can we make some further progress with this bug report?

I worked with Jose to track everything down. This isn't a gnus bug and
the bug report can be closed.

Slightly more detail: the protonmail bridge adds non-existent ids to the
references header of messages (presumably used in some internal way by
the protonmail bridge). 'gnus is resilient in handling these: if
collecting threads by subject (the default) everything "just works". And
in case you (optionally) want to only use the references header for
threading, gnus has a way to alter the headers for exactly this
occasion: 'gnus-alter-header-function.  So the following:

(setq gnus-alter-header-function 'fix-protonmail-references)

(defun fix-protonmail-references (header)
  (setf (mail-header-references header)
        (mapconcat
         #'(lambda (x) (if (string-search "protonmail.internalid" x) "" x))
         (gnus-split-references (mail-header-references header)) " "))
  header)

will work.

I think this deserves to be in the gnus manual.  I have a commit in my local
tree to do this, which I will push to master.

-- 
Andrew Cohen





This bug report was last modified 1 year and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.