From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34495 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: Eliminating repetitious "Re: Re: Re: ..." Date: 31 Jan 2001 13:07:49 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <5bzog761e2.fsf@avocet.cs.rochester.edu> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170412 30736 80.91.224.250 (21 Oct 2002 03:20:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:20:12 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id 62863D049D for ; Wed, 31 Jan 2001 13:10:46 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id MAC05898; Wed, 31 Jan 2001 12:08:14 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 31 Jan 2001 12:07:31 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id MAA20963 for ; Wed, 31 Jan 2001 12:07:21 -0600 (CST) Original-Received: from gate.cs.rochester.edu (gate.cs.rochester.edu [192.5.53.207]) by mailhost.sclp.com (Postfix) with ESMTP id D5250D049D for ; Wed, 31 Jan 2001 13:07:50 -0500 (EST) Original-Received: from avocet.cs.rochester.edu (avocet.cs.rochester.edu [192.5.53.22]) by gate.cs.rochester.edu (8.9.1b+Sun/U) with ESMTP id NAA16418 for ; Wed, 31 Jan 2001 13:07:50 -0500 (EST) Original-Received: (from zsh@localhost) by avocet.cs.rochester.edu (8.9.1b+Sun/Q++) id NAA25694; Wed, 31 Jan 2001 13:07:50 -0500 (EST) Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: (Karl Kleinpaste's message of "31 Jan 2001 09:31:42 -0500") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 43 Xref: main.gmane.org gmane.emacs.gnus.general:34495 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34495 Karl Kleinpaste writes: > I want to repair this damage done to Subject lines, notably in mailing > lists which have standard tokens in them. > > For example, and as I'm sure everyone knows, you get a mailing list > which automatically prepends "[foo]" to every subject line if it is > not already present: > Subject: [foo] the original subject > Normal followups to this, in the absence of other hackery, become: > Subject: Re: [foo] the original subject > Egroups and related list-support sites will leave this one alone, > because the needed "[foo]" token is in place. But then we Gnusers > come along, knowing that we don't need no steenkin' subject tokens, > and so we strip them out: > (setq nnmail-list-identifiers '("\\[foo]")) > so that what we see is: > Subject: the original subject > and when we reply, we generate: > Subject: Re: the original subject > List handlers decide this is inadequate, so they re-append the token: > Subject: [foo] Re: the original subject > and then some non-Gnuser follows up, generating > Subject: Re: [foo] Re: the original subject > which the list-identifier-stripping Gnuser will subsequently see as: > Subject: Re: Re: the original subject > > The patch below addresses this during nnmail-list-identifiers > processing, detecting repeated occurrence of "Re: " and reducing it to > just one. What if the header is Subject: [foo] Re: [foo] Re: [foo] Re: the original subject Actually, article-hide-list-identifier and gnus-summary-remove-list-identifiers have done this, but the limitation is that \( and \) can not be included list-identifiers. Could you find a better solution for all of these functions? ShengHuo -- (setq gnus-posting-styles '((".*" (signature-file "~/.signature"))))