From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60648 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: rfc2231-parse-string: Decode encoded value after concatenating segments Date: Thu, 28 Jul 2005 11:05:55 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1122608279 30413 80.91.229.2 (29 Jul 2005 03:37:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2005 03:37:59 +0000 (UTC) Original-X-From: ding-owner+M9176@lists.math.uh.edu Fri Jul 29 05:37:53 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyLh2-0004y6-K4 for ding-account@gmane.org; Fri, 29 Jul 2005 05:37:52 +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 1DyLc3-0004Nx-00; Thu, 28 Jul 2005 22:32:43 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dxxmi-0000n7-00 for ding@lists.math.uh.edu; Wed, 27 Jul 2005 21:06:08 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dxxmg-0003OH-Ka for ding@lists.math.uh.edu; Wed, 27 Jul 2005 21:06:06 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dxxmf-0006u1-00 for ; Thu, 28 Jul 2005 04:06:05 +0200 Original-Received: from localhost.servershost.net ([127.0.0.1] helo=localhost) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1Dxxmr-0007IB-58 for ding@gnus.org; Wed, 27 Jul 2005 21:06:17 -0500 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.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:WriC+eOGNOs8bP9oqQIZK73vkVs= X-Hashcash: 1:20:050728:ding@gnus.org::+5RidhHX+D4QAveq:00001yj9 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 - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60648 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60648 --=-=-= >>>>> In Reiner Steib wrote: > this change... > ,---- >| 2004-12-21 Katsumi Yamaoka >| >| * rfc2231.el (rfc2231-parse-string): Decode encoded value after >| concatenating segments rather than before concatenating them. >| Suggested by ARISAWA Akihiro . > `---- > ... breaks displaying of external body parts for me if the file name > spans more than one line, like this one: Thanks for pointing it out. I've fixed it in the v5-10 branch and the trunk. The change I'd made at the end of last year was insufficient; I should have taken care that not only a segmented parameter but also other parameters might be there. Here's a report I sent then: --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Date: Tue, 21 Dec 2004 18:38:15 +0900 Message-ID: From: Katsumi Yamaoka To: bugs@gnus.org Cc: semi-gnus-ja@meadowy.org Subject: Fixed: rfc2231.el decoder bug References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Hi, ARISAWA Akihiro reported there is a bug in the rfc2231 decoder. He wrote that the decoder doesn't decode encoded long values correctly as follows: (rfc2231-parse-string (concat "Content-Disposition: attachment;" (rfc2231-encode-string "filename" "一二三四五六七八九零一二三四五六七八九零.pdf"))) ("content-disposition:attachment" (filename . "一二三四五六七八九零一二三四五六七八6eNm^[(B.pdf")) I've fixed it in both the trunk and the v5-10 branch. Regards, --=-=-=--