From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67693 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Make ietf-drums-remove-comments() robust against broken header Date: Thu, 30 Oct 2008 17:54:24 +0900 Organization: Emacsen advocacy group Message-ID: References: <87wsfqsgk7.fsf@tsuchiya.vaj.namazu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225356921 4166 80.91.229.12 (30 Oct 2008 08:55:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2008 08:55:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16144@lists.math.uh.edu Thu Oct 30 09:56:23 2008 connect(): Connection refused 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 1KvTKH-0000X4-PQ for ding-account@gmane.org; Thu, 30 Oct 2008 09:56:22 +0100 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 1KvTJ6-0003ye-M8; Thu, 30 Oct 2008 03:55:08 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KvTJ5-0003yJ-6l for ding@lists.math.uh.edu; Thu, 30 Oct 2008 03:55:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KvTJ1-0003qy-1E for ding@lists.math.uh.edu; Thu, 30 Oct 2008 03:55:07 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KvTJ8-0008RD-00 for ; Thu, 30 Oct 2008 09:55:10 +0100 Original-Received: from localhost ([127.0.0.1]:54801) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1KvTIQ-0007IV-9L for ding@gnus.org; Thu, 30 Oct 2008 03:54:26 -0500 X-Hashcash: 1:20:081030:ding@gnus.org::QWj7iAEcuANab4KL:000039mo 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:iGh39KhouUWTIZdaGC2eUoN3+dk= 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.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67693 Archived-At: >>>>> TSUCHIYA Masatoshi wrote: > I have just met a message including a broken references header, like: > References: <200810150047.AA17342@mailhost.example.net> > <7B77911B-167E-47BF-A826-1C4396FEF000@foo.example.net> > <7B77911B-167E-47BF-A826-1C4396FEF000@foo.example.net> > (=?iso-2022-jp?B?IhskQj0pTVUbKEIgGyRCTSdOSRsoQg==?= "'s message of "Fri, 17 Oct 2008 04:32:17 +0900") > It forces ietf-drums-remove-comments() to say: > Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 157 258) > scan-sexps(157 1) > forward-sexp(1) > In order to avoid this error, I'd like to install the attached change. > Do you have any objections or better solutions? Although I don't know whether such messages often appear, I verified a message having that header cannot be seen at all without the patch. I think a Lisp function that uses `forward-sexp' to look for the close parenthesis should have been made so as not to stop at any rate except for the case where it is used only when the close parenthesis surely exists there. So your patch seems to be the right thing. Regards,