From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57252 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Case of letters that specify encodings in MIME-encoded words Date: Mon, 10 May 2004 16:34:43 +0900 Organization: Emacsen advocacy group Sender: ding-owner@lists.math.uh.edu Message-ID: References: <87fza84xka.fsf@pine.kuee.kyoto-u.ac.jp> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084174539 6253 80.91.224.253 (10 May 2004 07:35:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 May 2004 07:35:39 +0000 (UTC) Original-X-From: ding-owner+M5792@lists.math.uh.edu Mon May 10 09:35:30 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BN5Jy-0005yj-00 for ; Mon, 10 May 2004 09:35:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BN5JV-0003va-00; Mon, 10 May 2004 02:35:01 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BN5JN-0003vS-00 for ding@lists.math.uh.edu; Mon, 10 May 2004 02:34:53 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BN5JM-00081z-7R for ding@lists.math.uh.edu; Mon, 10 May 2004 02:34:52 -0500 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id 855113A0034 for ; Mon, 10 May 2004 02:34:51 -0500 (CDT) Original-Received: from yamaoka by washington.hostforweb.net with local (Exim 4.24) id 1BN5JL-00089O-11 for ding@gnus.org; Mon, 10 May 2004 03:34:51 -0400 Original-To: ding@gnus.org 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.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:wcuheSugDqYgNK8BZfNhiGTugEE= X-Hashcash: 0:040510:ding@gnus.org:092b0bb1cf936e91 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [32041 32041] / [47 12] X-AntiAbuse: Sender Address Domain - washington.hostforweb.net Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57252 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57252 >>>>> In <87fza84xka.fsf@pine.kuee.kyoto-u.ac.jp> >>>>> TSUCHIYA Masatoshi wrote: > Hi, > I noticed that several MUAs (including Microsoft Outlook Express) fail > to decode MIME-encoded subjects which are composed with Gnus. In > order to check the detail of this problem, I send three mails that > have MIME-encoded subjects to my friend who uses Microsoft Outlook > Express, and ask him to check whether these subjects are successfully > decoded or not. The result is here: > MIME-encoded subject field | Result > --------------------------------------+------------- > =?iso-2022-jp?b?GyRCNEE7ehsoQg==?= | undecoded > =?iso-2022-jp?B?GyRCNEE7ehsoQg==?= | decoded > =?ISO-2022-JP?B?GyRCNEE7ehsoQg==?= | decoded Isn't there the same problem in the Latin world? It's easy to suspect that "=?iso-8859-1?q?..." may not be decoded either, isn't it? I sometimes see those who don't want Gnus to encode Latin characters in headers. > This result shows that this broken decoder decodes MIME-encoded words > whose encodings are specified in the uppercase letter "B", and shows > that it does not decode a word whose encoding is specified in the > lowercase letter "b". > I think that a careless programmer implemented this decoder reading > the fourth section of RFC2047, > 4. Encodings > Initially, the legal values for "encoding" are "Q" and "B". > and he/she failed to notice the second section. > 2. Syntax of encoded-words > encoded-word = "=?" charset "?" encoding "?" encoded-text "?=" > charset = token ; see section 3 > encoding = token ; see section 4 > Both 'encoding' and 'charset' names are case-independent. Thus > the charset name "ISO-8859-1" is equivalent to "iso-8859-1", and > the encoding named "Q" may be spelled either "Q" or "q". > It is true that my reporting problem is not caused by Gnus, but I > think that the attached change may be useful for Gnus users who are > forced to communicate with users of such broken MUAs, and that it is > not harmful to Gnus at least. > Can I commit this change? > --- rfc2047.el 7 Apr 2004 19:41:45 -0000 7.11 > +++ rfc2047.el 7 May 2004 09:07:53 -0000 Although it is against my will, I think it is needed. -- Katsumi Yamaoka