From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/42950 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: gnus-split-references tweak Date: Wed, 06 Feb 2002 13:55:32 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035178121 14929 80.91.224.250 (21 Oct 2002 05:28:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:28:41 +0000 (UTC) Return-Path: Original-Received: (qmail 29125 invoked from network); 6 Feb 2002 18:58:25 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 6 Feb 2002 18:58:25 -0000 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 16YXG7-0002VH-00; Wed, 06 Feb 2002 12:57:31 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 06 Feb 2002 12:57:05 -0600 (CST) 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 MAA01571 for ; Wed, 6 Feb 2002 12:55:40 -0600 (CST) Original-Received: (qmail 29084 invoked by alias); 6 Feb 2002 18:55:34 -0000 Original-Received: (qmail 29079 invoked from network); 6 Feb 2002 18:55:34 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (qmailr@129.22.96.25) by gnus.org with SMTP; 6 Feb 2002 18:55:34 -0000 Original-Received: (qmail 21255 invoked by uid 500); 6 Feb 2002 18:55:55 -0000 Original-To: ding@gnus.org User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu) Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org Original-Lines: 21 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:42950 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:42950 I've found Message-IDs generated by Lotus Notes that contain a space just before the ">". (Yep, they're malformed.) Gnus dutifully preserves them in its References, but then it's unable to recognize them for threading. This patch maks them recognizable: everything from one "<" to the next "<" is included in a reference except trailing whitespace. Any objections, or should I commit? Might this confuse some parts of Gnus, when references suddenly start containing internal whitespace? --- lisp/gnus-util.el 2002/01/27 11:16:57 6.46 +++ lisp/gnus-util.el 2002/02/06 18:59:13 @@ -470,5 +470,5 @@ (let ((beg 0) ids) - (while (string-match "<[^> \t]+>" references beg) + (while (string-match "<[^<]+[^< \t]" references beg) (push (substring references (match-beginning 0) (setq beg (match-end 0))) ids)) paul