From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67003 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Make rfc2231-decode-encoded-string more robust Date: Fri, 30 May 2008 19:06:51 +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: ger.gmane.org 1212142155 6622 80.91.229.12 (30 May 2008 10:09:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 May 2008 10:09:15 +0000 (UTC) Cc: ding@gnus.org To: Joao Cachopo Original-X-From: ding-owner+M15474@lists.math.uh.edu Fri May 30 12:09:53 2008 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 1K21YD-0008G0-5p for ding-account@gmane.org; Fri, 30 May 2008 12:09:33 +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 1K21Wk-0007Kq-BM; Fri, 30 May 2008 05:08:02 -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 1K21Wi-0007KW-U4 for ding@lists.math.uh.edu; Fri, 30 May 2008 05:08:00 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1K21Wc-0007Iq-TI for ding@lists.math.uh.edu; Fri, 30 May 2008 05:08:00 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1K21Ws-0005YX-00 for ; Fri, 30 May 2008 12:08:10 +0200 Original-Received: from [66.225.201.151] (port=35471 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1K21W1-00076e-Jb; Fri, 30 May 2008 05:07:18 -0500 X-Hashcash: 1:20:080530:joao@cachopo.org::XCMvqI1qIamG14d7:01AqP X-Hashcash: 1:20:080530:ding@gnus.org::FcypxndJ4nvHWVOa:0000KBa8 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.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:hp544IXWIbpzw3WB+nXX3L2MfIs= 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.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67003 Archived-At: >>>>> Joao Cachopo wrote: > Once in a while I receive an email that Gnus fails to show, giving an > error in rfc2231-decode-encoded-string. As far as I could see, the > problem is with the email message, that has an incorrectly formed > RFC2231 string somewhere within it. More specifically, the string ends > with '%'. Probably, this is due to some broken MUA out there. > Still, I think that Gnus should handle this case more gracefully, rather > than not showing the email at all. > Therefore, I propose the following change to the > rfc2231-decode-encoded-string to make it more robust. I think that function should never stop Gnus whatever happens; at least things other than the attachment in question should be displayed. Thank you for the patch, but I've modified it in another way in the Gnus trunk. It ignores things that are not 2-digit hexadecimal characters that follow `%'s. Regards,