From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44840 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Gathering very loose threads Date: Wed, 15 May 2002 14:54:43 +0200 (CEST) Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1021467352 31421 127.0.0.1 (15 May 2002 12:55:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 May 2002 12:55:52 +0000 (UTC) Cc: ding@gnus.org 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 177yJs-0008AZ-00 for ; Wed, 15 May 2002 14:55:52 +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 177yJH-0001sl-00; Wed, 15 May 2002 07:55:15 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 15 May 2002 07:55:31 -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 HAA08892 for ; Wed, 15 May 2002 07:55:21 -0500 (CDT) Original-Received: (qmail 28528 invoked by alias); 15 May 2002 12:54:59 -0000 Original-Received: (qmail 28523 invoked from network); 15 May 2002 12:54:59 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 15 May 2002 12:54:59 -0000 Original-Received: from yxa.extundo.com (localhost.localdomain [127.0.0.1]) by yxa.extundo.com (8.12.3/8.12.3) with ESMTP id g4FCsiWa004978; Wed, 15 May 2002 14:54:44 +0200 Original-Received: from localhost (jas@localhost) by yxa.extundo.com (8.12.3/8.12.1/Submit) with ESMTP id g4FCshve004975; Wed, 15 May 2002 14:54:44 +0200 X-Authentication-Warning: yxa.extundo.com: jas owned process doing -bs Original-To: Niklas Morberg In-Reply-To: Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44840 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44840 On Wed, 15 May 2002, Niklas Morberg wrote: > I've set the variables: > > gnus-simplify-subject-functions '(gnus-simplify-subject-fuzzy) > gnus-summary-gather-subject-limit 'fuzzy > gnus-simplify-ignored-prefixes ".*\\[.*@.*\\]" > > to help gather subjects that belong together under the same > thread. This helps a lot (the last one is to get replies to > messages forwarded by gnus to thread properly), but one > problem remains. > > Some MUAs insert a space in the subject line if the subject > is too long (65 characters in one case). How can I solve > this? Here is an example of four subject lines that all > should be gathered in the same thread: > > About your recent suggestion to improve life > Re: About your recent suggestion to improve life > Re: [A person ] About your recent suggestion to improve life > Re: [A person ] About your recent suggest ion to improve life > > Any ideas? All whitespace could be stripped before comparing Subject: content. Does this work as a member of gnus-simplify-subject-functions? (lambda (str) (with-temp-buffer (insert str) (goto-char (point-min)) (while (re-search-forward " +" nil t) (replace-match "")) (buffer-string))))))