From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61180 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus: incorrect conversion of Subject and From field from utf-8 to koi8-r Date: Sat, 15 Oct 2005 17:50:31 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1129366292 31658 80.91.229.2 (15 Oct 2005 08:51:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2005 08:51:32 +0000 (UTC) Cc: rms@gnu.org, bsam@ipt.ru, ding@gnus.org, handa@m17n.org Original-X-From: ding-owner+m9714@lists.math.uh.edu Sat Oct 15 10:51:24 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQhkv-0004wL-4G for ding-account@gmane.org; Sat, 15 Oct 2005 10:51:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EQhkq-0004PT-00; Sat, 15 Oct 2005 03:51:00 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EQhkd-0004PL-00 for ding@lists.math.uh.edu; Sat, 15 Oct 2005 03:50:47 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EQhka-0004fy-B2 for ding@lists.math.uh.edu; Sat, 15 Oct 2005 03:50:47 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EQhkX-00033y-00 for ; Sat, 15 Oct 2005 10:50:41 +0200 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j9F8oXD5029313; Sat, 15 Oct 2005 17:50:33 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j9F8oXnd016783; Sat, 15 Oct 2005 17:50:33 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1EQhkN-0001aF-00; Sat, 15 Oct 2005 17:50:31 +0900 Original-To: Katsumi Yamaoka In-reply-to: (message from Katsumi Yamaoka on Sat, 15 Oct 2005 17:28:49 +0900) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61180 Archived-At: In article , Katsumi Yamaoka writes: > I confirmed Handa-san's patch is 99% perfect and doesn't lower > the performance. However I hesitate to commit it to Gnus > because I found out the `MUST NOT' phrase in RFC2047 as follows: > 5. Use of encoded-words in message headers > [...] > The 'encoded-text' in an 'encoded-word' must be self-contained; > 'encoded-text' MUST NOT be continued from one 'encoded-word' to > another. This implies that the 'encoded-text' portion of a "B" > 'encoded-word' will be a multiple of 4 characters long; for a "Q" > 'encoded-word', any "=" character that appears in the 'encoded-text' > portion will be followed by two hexadecimal characters. > The encoded-words that Boris B. Samorodov presented comes just > under this case. Even so, should Gnus support such encodings? >>>>>> In >>>>>> "Boris B. Samorodov" wrote: >> Subject: =?UTF-8?B?W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQmjog0KHQ?= =?UTF-8?B?nyDRgtC10YHRgg==?= This example doesn't violate the above restriction. Each 'encoded-word' is surely "multiple of 4 characters long". Please note that the above restriction is for 'encoded-text', not for the underlining coded character set. So, I think the above document doesn't prohibit diviging UTF-8 byte sequence at non-character boundary. --- Kenichi Handa handa@m17n.org