From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64807 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: decoded authors names in agent/.overview Date: Thu, 14 Jun 2007 21:25:25 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181824022 10507 80.91.229.12 (14 Jun 2007 12:27:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2007 12:27:02 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13318@lists.math.uh.edu Thu Jun 14 14:27:01 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1HyoPj-0005qq-JE for ding-account@gmane.org; Thu, 14 Jun 2007 14:26:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1HyoOv-0007wL-C1; Thu, 14 Jun 2007 07:26:09 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HyoOu-0007w6-1o for ding@lists.math.uh.edu; Thu, 14 Jun 2007 07:26:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1HyoOs-0001C8-B4 for ding@lists.math.uh.edu; Thu, 14 Jun 2007 07:26:07 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HyoOq-0000KP-00 for ; Thu, 14 Jun 2007 14:26:05 +0200 Original-Received: from [66.225.201.151] (port=51502 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.63) (envelope-from ) id 1HyoOJ-0005fI-CE for ding@gnus.org; Thu, 14 Jun 2007 07:25:31 -0500 X-Hashcash: 1:20:070614:ding@gnus.org::nSXUa4Jv6ggFGbra:0000351M X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:dvKnzWsF00TJuORC7QUbtfCrG1E= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64807 Archived-At: >>>>> In Katsumi Yamaoka wrote: > A Japanese user who recently updated Emacs and Gnus into 22.1 and > v5.11 reported[1] that authors' names that appear in summary lines > are broken when reading Japanese newsgroups, e.g., fj.soc.politics. > I also reproduced this problem today only once. However, it never > arises after I ran `gnus-agent-expire', and I didn't find the way > to reproduce it so far. In the summary buffer, they looked like: > O [ 29: GON ] ...Japanese subject... > O [ 7: Fatman ] > O [ 16: ?????? sakaei ] > O [ 22: ?????? sakaei ] > O [ 1: ???????????? ] > Those question marks are exactly the ones I saw, though they had > to be Japanese names. I checked those articles and NOV's in the > nntp server and confirmed they all were correctly RFC2047-encoded > Japanese names. But I finally found the real cause. It is that > decoded authors' names were saved in > the ~/News/agant/nntp/SERVER/NEWS/GROUP/NAME/.overview file. Of > course they are RFC2047-encoded ones normally, though. I've solved this problem and installed the fix in both the trunk and the v5-10 branch. There were two causes that aroused this: 1. When a user requests reading articles in a certain newsgroup for the first time after starting Gnus, Gnus tries sending an XOVER command to the news server. If those articles have been all expired in the server, the server returns a response without NOV lines as follows: --8<---------------cut here---------------start------------->8--- GROUP gnu.emacs.gnus 211 919 56683 58329 gnu.emacs.gnus XOVER 1-10 224 1-10 fields follow . --8<---------------cut here---------------end--------------->8--- In that case, Gnus decides the XOVER command is not available in the server, and will use the HEAD command hereafter. It likely happens if a user visits a newsgroup after a long interval and requests a first few unread articles. It lowers the performance anyway. 2. When the Agent fetches headers using the HEAD command, none of RFC2047-encoded words in headers should never be decoded. For that purpose, the Agent binds the variable `gnus-decode-encoded-word-function' to `identity'. However, I forgot to bind the `gnus-decode-encoded-address-function' variable as well when I introduced it last year. The long and short of it is that the culprit is me. Sorry.