all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rmail-get-attr-names: Corrupt attribute header in message
@ 2009-02-16 12:06 Kenichi Handa
  2009-02-16 22:50 ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Kenichi Handa @ 2009-02-16 12:06 UTC (permalink / raw)
  To: emacs-devel

With today's update, I frequenty get the above error in
rmail, and RMAIL buffer is left swapped (i.e. showing the
RMAIL file itself).

This is an example of the header of such message.

----------------------------------------------------------------------
From sacha@myxomop.com Fri Aug 03 00:22:29 2007
X-RMAIL-KEYWORDS: mustreply
Return-path: <sacha@myxomop.com>
X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on etlken.m17n.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham
	version=3.2.1
Envelope-to: handa@localhost
Delivery-date: Fri, 03 Aug 2007 00:22:29 +0900
Received: from localhost
	([127.0.0.1] helo=etlken.m17n.org ident=fetchmail)
	by etlken.m17n.org with esmtp (Exim 4.67)
	(envelope-from <sacha@myxomop.com>)
	id 1IGcVR-0002rk-R1
	for handa@localhost; Fri, 03 Aug 2007 00:22:29 +0900
Received: from mail.aist.go.jp [150.29.246.10]
	by etlken.m17n.org with POP3 (fetchmail-6.3.8)
	for <handa@localhost> (single-drop); Fri, 03 Aug 2007 00:22:29 +0900 (JST)
Received: 
	by smtp2.aist.go.jp  with ESMTP id l72FLRmf011881
	for <handa.kenichi@aist.go.jp>; Fri, 3 Aug 2007 00:21:29 +0900 (JST)
	env-from (sacha@myxomop.com)
Received: from mail.m17n.org (mail.m17n.org [164.46.81.2])
	by mx2.aist.go.jp  with ESMTP id l72FLKQV023939
	for <handa.kenichi@aist.go.jp>; Fri, 3 Aug 2007 00:21:25 +0900 (JST)
	env-from (sacha@myxomop.com)
Received: from myxomop.com (myxomop.com [69.55.233.8])
	by mail.m17n.org (8.12.11.20060829/8.11.3) with ESMTP id l72FLJ4L009518
	for <handa@m17n.org>; Fri, 3 Aug 2007 00:21:20 +0900
Received: from sacha by myxomop.com with local (Exim 3.36 #1 (Debian))
	id 1IGcQt-0007gy-00
	for <handa@m17n.org>; Thu, 02 Aug 2007 11:17:47 -0400
To: Kenichi Handa <handa@m17n.org>
Subject: Re: [sacha@myxomop.com: Re: XCreateFontSet called for each X window
	emacs frame is heavy]
References: <E1I52LN-0006uy-Ny@fencepost.gnu.org>
	<E1IAyEJ-0007aQ-W9@etlken.m17n.org>
From: Alexander Kotelnikov <sacha@myxomop.com>
Organization: Global disintoxication
Mail-Copies-To: never
Date: Thu, 02 Aug 2007 19:17:47 +0400
In-Reply-To: <E1IAyEJ-0007aQ-W9@etlken.m17n.org> (Kenichi Handa's message of
 "Wed, 18 Jul 2007 10:21:27 +0900")
Message-ID: <85sl72vuck.fsf@myxomop.com>
User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-RMAIL-ATTRIBUTES: --------
----------------------------------------------------------------------

---
Kenichi Handa
handa@m17n.org




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rmail-get-attr-names: Corrupt attribute header in message
  2009-02-16 12:06 rmail-get-attr-names: Corrupt attribute header in message Kenichi Handa
@ 2009-02-16 22:50 ` Glenn Morris
  2009-02-17  0:50   ` Kenichi Handa
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2009-02-16 22:50 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel

Kenichi Handa wrote:

> With today's update, I frequenty get the above error in
> rmail, and RMAIL buffer is left swapped (i.e. showing the
> RMAIL file itself).

Well, that sounds like it might be a bug.

> Content-Type: text/plain; charset=us-ascii
> X-RMAIL-ATTRIBUTES: --------

What does the next line look like? Does it start with whitespace?

What does (rmail-get-header rmail-attribute-header) return for this
message?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rmail-get-attr-names: Corrupt attribute header in message
  2009-02-16 22:50 ` Glenn Morris
@ 2009-02-17  0:50   ` Kenichi Handa
  2009-02-17  2:25     ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Kenichi Handa @ 2009-02-17  0:50 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]

In article <poljs6nghy.fsf@fencepost.gnu.org>, Glenn Morris <rgm@gnu.org> writes:

> Kenichi Handa wrote:
> > With today's update, I frequenty get the above error in
> > rmail, and RMAIL buffer is left swapped (i.e. showing the
> > RMAIL file itself).

> Well, that sounds like it might be a bug.

> > Content-Type: text/plain; charset=us-ascii
> > X-RMAIL-ATTRIBUTES: --------

> What does the next line look like? Does it start with whitespace?

The next line is empty.

> What does (rmail-get-header rmail-attribute-header) return for this
> message?

"-------"

I'll attach the small RMAIL file that causes this problem.

---
Kenichi Handa
handa@m17n.org


[-- Attachment #2: sample rmail file --]
[-- Type: application/octet-stream, Size: 18789 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rmail-get-attr-names: Corrupt attribute header in message
  2009-02-17  0:50   ` Kenichi Handa
@ 2009-02-17  2:25     ` Glenn Morris
  2009-02-17  2:40       ` Kenichi Handa
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2009-02-17  2:25 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel

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?

Such headers are wrong, but I'll change it to just print a warning
rather than giving an error in such cases.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rmail-get-attr-names: Corrupt attribute header in message
  2009-02-17  2:25     ` Glenn Morris
@ 2009-02-17  2:40       ` Kenichi Handa
  0 siblings, 0 replies; 5+ messages in thread
From: Kenichi Handa @ 2009-02-17  2:40 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

In article <ce3aedn6iy.fsf@fencepost.gnu.org>, Glenn Morris <rgm@gnu.org> 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-17  2:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-16 12:06 rmail-get-attr-names: Corrupt attribute header in message Kenichi Handa
2009-02-16 22:50 ` Glenn Morris
2009-02-17  0:50   ` Kenichi Handa
2009-02-17  2:25     ` Glenn Morris
2009-02-17  2:40       ` Kenichi Handa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.