* doc/misc/gnus.texi (Low-Level Threading): Provide an example of using
gnus-alter-header-function to remove unwanted items in References
header.
(cherry picked from commit
1b8613063cf6a3b9a1f484e1179877e36ba4b5e0)
header))))
@end lisp
+And another example: the protonmail bridge adds fake message-ids to
+@code{References} in message headers, which can confuse threading. To
+remove these spurious ids
+
+@lisp
+(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)
+
+ @end lisp
+
@end table