From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44874 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Can thread gathering use In-Reply-To: ? Date: Sun, 19 May 2002 03:38:51 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1021772528 23493 127.0.0.1 (19 May 2002 01:42:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 19 May 2002 01:42:08 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 179Fi4-00066o-00 for ; Sun, 19 May 2002 03:42:08 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 179FhR-0005b5-00; Sat, 18 May 2002 20:41:29 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 18 May 2002 20:41:48 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id UAA27851 for ; Sat, 18 May 2002 20:41:37 -0500 (CDT) Original-Received: (qmail 6255 invoked by alias); 19 May 2002 01:41:13 -0000 Original-Received: (qmail 6250 invoked from network); 19 May 2002 01:41:12 -0000 Original-Received: from pfepc.post.tele.dk (193.162.153.4) by gnus.org with SMTP; 19 May 2002 01:41:12 -0000 Original-Received: from defun.localdomain (0xc3f9822c.esnxr3.ras.tele.dk [195.249.130.44]) by pfepc.post.tele.dk (Postfix) with ESMTP id 86705267ED2 for ; Sun, 19 May 2002 02:39:56 +0200 (CEST) Original-To: ding@gnus.org In-Reply-To: (tkoelman@xs4all.nl's message of "Wed, 15 May 2002 20:41:34 +0000 (UTC)") Original-Lines: 25 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44874 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44874 --=-=-= tkoelman@xs4all.nl (Tom Koelman) writes: > Jesper Harder wrote: > >> tkoelman@xs4all.nl (Tom Koelman) writes: >> >>> On inspection of the reply I noticed that it didn't have its >>> References header set, but did have a header called In-Reply_To: >>> with the correct message-id. >>> >>> Is there some way to make gnus use this information? >> >> Hmm, I would have thought Gnus already does it. > > You are right, thanks. > I had set gnus-summary-thread-gathering-function to > gnus-gather-threads-by-references. When I turned that off the thread > was gathered nicely. Hmm, I think this patch should make work with gnus-gather-threads-by-references, too: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=gnus-sum.el.patch --- /home/harder/gnus/lisp/gnus-sum.el Fri May 17 02:03:24 2002 +++ gnus-sum.el Sun May 19 02:49:51 2002 @@ -3525,7 +3525,14 @@ (result threads) ids references id gthread gid entered ref) (while threads - (when (setq references (mail-header-references (caar threads))) + (when (or + (not (string= "" (setq references + (mail-header-references (caar threads))))) + (and + (setq references + (cdr (assq 'In-Reply-To (mail-header-extra (caar threads))))) + (setq references + (gnus-extract-message-id-from-in-reply-to references)))) (setq id (mail-header-id (caar threads)) ids (inline (gnus-split-references references)) entered nil) --=-=-=--