From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: rmail-get-attr-names: Corrupt attribute header in message Date: Tue, 17 Feb 2009 11:40:40 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234838488 2010 80.91.229.12 (17 Feb 2009 02:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 02:41:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 17 03:42:43 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZFuw-0000EF-Dy for ged-emacs-devel@m.gmane.org; Tue, 17 Feb 2009 03:42:38 +0100 Original-Received: from localhost ([127.0.0.1]:57330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZFtc-00020E-DG for ged-emacs-devel@m.gmane.org; Mon, 16 Feb 2009 21:41:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZFsy-0001lc-8i for emacs-devel@gnu.org; Mon, 16 Feb 2009 21:40:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZFsw-0001lQ-Qh for emacs-devel@gnu.org; Mon, 16 Feb 2009 21:40:36 -0500 Original-Received: from [199.232.76.173] (port=60940 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZFsw-0001lN-Ng for emacs-devel@gnu.org; Mon, 16 Feb 2009 21:40:34 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:48729) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZFsu-0003yB-KT; Mon, 16 Feb 2009 21:40:33 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n1H2eQ8p022089; Tue, 17 Feb 2009 11:40:26 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n1H2eQQP020105; Tue, 17 Feb 2009 11:40:26 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id n1H2eQu9025177; Tue, 17 Feb 2009 11:40:26 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LZFt2-0000G7-Ha; Tue, 17 Feb 2009 11:40:40 +0900 In-reply-to: (message from Glenn Morris on Mon, 16 Feb 2009 21:25:57 -0500) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109117 Archived-At: In article , Glenn Morris writes: > Kenichi Handa wrote: >>> What does (rmail-get-header rmail-attribute-header) return for this >>> message? > > > > "-------" > That should have 8 elements, not 7. > > I'll attach the small RMAIL file that causes this problem. > There are three messages in the attached file. > In the second and third one, the X-RMAIL-ATTRIBUTES header is indeed > corrupt. It only contains 7 "-" when it should contain 8. If you add > an extra "-", it should work. > I don't know why that happened; it should not. Perhaps you could look > into how it came about? Hasn't the number of attributes been increased after pmail was merged to rmail? I think the number was 7 when my RMAIL file was converted to the mbox. > Such headers are wrong, but I'll change it to just print a warning > rather than giving an error in such cases. How about just silently adding one more "-" in such a case? --- Kenichi Handa handa@m17n.org