From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2174 Path: news.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus-alter-header-function and mail->news gateway. Date: Fri, 07 Mar 2003 02:24:22 +0100 Organization: http://purl.org/harder/ Message-ID: References: <4aheag40gy.fsf@kern.srcf.societies.cam.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668704 14203 80.91.229.2 (31 Jan 2006 00:51:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:51:44 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:17 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.gnus X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; Gaute B Strokkenes writes: > I read a mailing list through a news gateway. Threading does not work > very well, since the gateway munges the headers slightly. For > instance, "References:" becomes "X-Originial-References:". I would > like to have Gnus consider this information as well, and it seems that > I can do so using gnus-alter-header-function. This function won't do the trick -- it can only alter a header _value_ not the name of a header. Another more serious problem is that Gnus doesn't know the the value of 'X-Originial-References' when the threading is done. Initially, just the subset of headers included in the overview are fetched. The rest of the headers are only fetched from the server when you actually view the article. You _can_ tell Gnus to fetch all headers, but this will be _much_ slower than the normal method. Something like this might work: (defun my-unmangle-references () (save-excursion (goto-char (point-min)) (when (re-search-forward "^X-Original-References:" nil t) (replace-match "References:")))) (add-hook 'gnus-parse-headers-hook 'my-unmangle-references) (setq nntp-server-xover nil)