From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Colin Baxter" Newsgroups: gmane.emacs.help Subject: Re: Convert text file to mbox file? Date: Fri, 04 Mar 2022 07:27:48 +0000 Organization: Charlie's Cat Group =?utf-8?B?8J+YuiDwn5i6IPCfmLo=?= Message-ID: <877d9auqh7.fsf@yandex.com> References: <87ee3ivs6f.fsf@yandex.com> <83tucej3nd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31188"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.90 (gnu/linux) Cc: , help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 04 08:28:45 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nQ2Mm-0007z0-Sx for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Mar 2022 08:28:44 +0100 Original-Received: from localhost ([::1]:38618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQ2Ml-0002lS-Ck for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Mar 2022 02:28:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ2M4-0002lI-CY for help-gnu-emacs@gnu.org; Fri, 04 Mar 2022 02:28:01 -0500 Original-Received: from [2a02:6b8:0:1a2d::611] (port=56050 helo=forward501o.mail.yandex.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ2M1-0003Ce-G1; Fri, 04 Mar 2022 02:27:59 -0500 Original-Received: from vla1-c131b56fb0b2.qloud-c.yandex.net (vla1-c131b56fb0b2.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:2994:0:640:c131:b56f]) by forward501o.mail.yandex.net (Yandex) with ESMTP id 6C87F45C4AD0; Fri, 4 Mar 2022 10:27:51 +0300 (MSK) Original-Received: from vla1-7f766694f389.qloud-c.yandex.net (vla1-7f766694f389.qloud-c.yandex.net [2a02:6b8:c0d:89c:0:640:7f76:6694]) by vla1-c131b56fb0b2.qloud-c.yandex.net (mxback/Yandex) with ESMTP id dynFNrdPru-RpfKqA6O; Fri, 04 Mar 2022 10:27:51 +0300 X-Yandex-Fwd: 2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1646378871; bh=mcGi0wibIotiRObyEjnWHyfZS2jjlLyLiFMhf8y3mTk=; h=In-Reply-To:Subject:Cc:Cc:Date:References:To:From:Message-ID; b=riAFFGsmx/DkSiIZmjziorSnQNC2wid5xXt3z19aU9Tfb5cWFttW/0CHy6Ro84o95 9KyvEV/Hl3NfpbId3gLd2JfeUQG+OUJVaJqvzfYt3NDqa4oxl3IRCKKxzdmlO+F993 YTceuYb0+qRjxxmqg2DAfFkJ850xH1or6JE2nfxo= Authentication-Results: vla1-c131b56fb0b2.qloud-c.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by vla1-7f766694f389.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 9YniIPfaqd-RoK4o2vo; Fri, 04 Mar 2022 10:27:50 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T X-Message-My-Extra-Message: 8-) We are the only ones here =?utf-8?B?8J+YuiDwn5i6IPCfmLo=?= In-Reply-To: <83tucej3nd.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Mar 2022 20:24:06 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:6b8:0:1a2d::611 (failed) Received-SPF: pass client-ip=2a02:6b8:0:1a2d::611; envelope-from=m43cap@yandex.com; helo=forward501o.mail.yandex.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136352 Archived-At: >>>>> Eli Zaretskii writes: >> From: "Dr. C. Baxter" Date: Thu, 03 Mar 2022 >> 17:53:28 +0000 >> >> In my rmail configuration, I have sent the variable >> 'mail-archive-file-name' to a local file 'sent'. All appeared to >> go well for several months, but when I now try to read 'sent' via >> "M-x rmail-input" I'm told that 'sent' is an Invalid mbox file. I >> think the problem may have arisen when I edited and saved 'sent' >> as if it were an ordinary text file. Is there anyway in which I >> can covert 'sent' back to an mbox file? > My suggestion is to establish what exactly causes Rmail to signal > this error. Set debug-on-error non-nil, and examine the > backtrace; then step with Edebug if needed. > Once you understand what exactly causes the error, I'm quite sure > repairing your archive will be easy. You're right, the repair was easy. During a previous edit, I had inadvertently written several blank lines to the top of the archive file. I removed these to obtain once again an mbox file. Thanks. Best wishes, Colin Baxter.