From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Chong Yidong <cyd@stupidchicken.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#3769: 23.0.95;
	unrmail and b2m may create invalid mbox files (patch)
Date: Tue, 07 Jul 2009 23:21:27 -0400
Message-ID: <87k52j507c.fsf@stupidchicken.com>
Reply-To: Chong Yidong <cyd@stupidchicken.com>, 3769@emacsbugs.donarmstrong.com
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: ger.gmane.org 1247063066 15902 80.91.229.12 (8 Jul 2009 14:24:26 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 8 Jul 2009 14:24:26 +0000 (UTC)
Cc: 3769@emacsbugs.donarmstrong.com
To: Jay Berkenbilt <ejb@ql.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 08 16:24:19 2009
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([199.232.76.165])
	by lo.gmane.org with esmtp (Exim 4.50)
	id 1MOY4I-0006VW-Tj
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 16:24:19 +0200
Original-Received: from localhost ([127.0.0.1]:55722 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1MOY4I-00079a-At
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 10:24:18 -0400
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1MOXxq-0001FM-Oa
	for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2009 10:17:39 -0400
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1MOXxj-00015a-UB
	for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2009 10:17:36 -0400
Original-Received: from [199.232.76.173] (port=45333 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1MOXxj-000156-M5
	for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2009 10:17:31 -0400
Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36720)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <debbugs@rzlab.ucr.edu>) id 1MOXxi-0000oe-1P
	for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2009 10:17:30 -0400
Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n68EHQPo032365; 
	Wed, 8 Jul 2009 07:17:28 -0700
Original-Received: (from debbugs@localhost)
	by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n68E054p028663;
	Wed, 8 Jul 2009 07:00:05 -0700
X-Loop: owner@emacsbugs.donarmstrong.com
Resent-From: Chong Yidong <cyd@stupidchicken.com>
Resent-To: bug-submit-list@donarmstrong.com
Resent-CC: Emacs Bugs <bug-gnu-emacs@gnu.org>
Resent-Date: Wed, 08 Jul 2009 14:00:05 +0000
Resent-Message-ID: <handler.3769.B3769.124706134428092@emacsbugs.donarmstrong.com>
Resent-Sender: owner@emacsbugs.donarmstrong.com
X-Emacs-PR-Message: followup 3769
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Original-Received: via spool by 3769-submit@emacsbugs.donarmstrong.com
	id=B3769.124706134428092
	(code B ref 3769); Wed, 08 Jul 2009 14:00:05 +0000
Original-Received: (at 3769) by emacsbugs.donarmstrong.com; 8 Jul 2009 13:55:44 +0000
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
Original-Received: from pantheon-po32.its.yale.edu (pantheon-po32.its.yale.edu
	[130.132.50.88])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n68Dte2u028071
	for <3769@emacsbugs.donarmstrong.com>; Wed, 8 Jul 2009 06:55:41 -0700
Original-Received: from furry (dhcp128036014241.central.yale.edu [128.36.14.241])
	(authenticated bits=0)
	by pantheon-po32.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id
	n68DtY11001707
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
	Wed, 8 Jul 2009 09:55:34 -0400
Original-Received: by furry (Postfix, from userid 1000)
	id BBC6EC09B; Tue,  7 Jul 2009 23:21:27 -0400 (EDT)
X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Resent-Date: Wed, 08 Jul 2009 10:17:36 -0400
X-BeenThere: bug-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.bugs:29251
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/29251>

> This is a very serious problem with an easy fix.  When converting a
> BABYL file to mbox format, both unrmail and b2m create invalid mbox
> files if the message does not end with a blank line.  I'm attaching
> two files: a patch that fixes both unrmail.el and b2m.c, and a sample
> RMAIL file that illustrates the problem.

Thanks for spotting this bug.  I've checked in (slightly modified
versions of) your patches into CVS, and they will be included in 23.1.