From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67700 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Bj=F8rn_Mork?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Make ietf-drums-remove-comments() robust against broken header Date: Thu, 30 Oct 2008 15:27:13 +0100 Organization: Drone of Desert Message-ID: <87prli5fb2.fsf@obelix.mork.no> References: <87wsfqsgk7.fsf@tsuchiya.vaj.namazu.org> <87zlkm78nq.fsf@obelix.mork.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1225376909 9058 80.91.229.12 (30 Oct 2008 14:28:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2008 14:28:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16151@lists.math.uh.edu Thu Oct 30 15:29:31 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 1KvYWg-0003LC-UD for ding-account@gmane.org; Thu, 30 Oct 2008 15:29:31 +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 1KvYUk-0000KM-6h; Thu, 30 Oct 2008 09:27:30 -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 1KvYUi-0000K9-Jy for ding@lists.math.uh.edu; Thu, 30 Oct 2008 09:27:28 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KvYUg-0004H3-2B for ding@lists.math.uh.edu; Thu, 30 Oct 2008 09:27:28 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KvYUn-0006bZ-00 for ; Thu, 30 Oct 2008 15:27:33 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KvYUX-0006K8-TD for ding@gnus.org; Thu, 30 Oct 2008 14:27:17 +0000 Original-Received: from 226.246.120.148.in-addr.arpa ([148.120.246.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Oct 2008 14:27:17 +0000 Original-Received: from bmork by 226.246.120.148.in-addr.arpa with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Oct 2008 14:27:17 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 226.246.120.148.in-addr.arpa User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:5UOSl9ehsFknGg7NRATotk41d/s= X-Spam-Score: -1.5 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67700 Archived-At: Katsumi Yamaoka writes: >>>>>> Bjørn Mork wrote: >> TSUCHIYA Masatoshi writes: > >>> 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") > >> I fail to see how that's broken. Care to explain? > > In the condition where `ietf-drums-syntax-table' is used, > the parentheses in the last line are unbalanced. For instance: > > (progn > (pop-to-buffer "*testing*") > (erase-buffer) > (insert "(=?iso-2022-jp?B?IhskQj0pTVUbKEIgGyRCTSdOSRsoQg==?= \"'s message of \"Fri, 17 Oct 2008 04:32:17 +0900\")") > (require 'ietf-drums) > (set-syntax-table ietf-drums-syntax-table) > (goto-char (point-min)) > (forward-sexp 1)) Yes, I can see that the parsing fails, but there's nothing wrong with the comment, is there? Any number of "'s are allowed, including odd numbers. And won't the suggested patch kill something like this?: References: (") <200810150047.AA17342@mailhost.example.net> which AFAICS is allowed. Bjørn -- Ban the war on drugs