From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Convert text file to mbox file? Date: Thu, 03 Mar 2022 20:24:06 +0200 Message-ID: <83tucej3nd.fsf@gnu.org> References: <87ee3ivs6f.fsf@yandex.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27068"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 03 19:32:00 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 1nPqF5-0006oE-Ev for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Mar 2022 19:31:59 +0100 Original-Received: from localhost ([::1]:35654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPqF4-00044v-1v for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Mar 2022 13:31:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPq7U-0002Rk-BT for help-gnu-emacs@gnu.org; Thu, 03 Mar 2022 13:24:08 -0500 Original-Received: from [2001:470:142:3::e] (port=55524 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPq7U-0005Hf-2E for help-gnu-emacs@gnu.org; Thu, 03 Mar 2022 13:24:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TVodBC35JXcqNFFewWmUZ5tfa+48ecXS5vZ1+aGNc8Y=; b=pqtvm8LacT7p OP4J3G3PqVxGlIDa73yNz8H1egO9k7W0DM16juVgh0rNg1XL7ww/oLlDzn7UyOusTQX2aaIDUkvyB u4JHmBKv7E+Kp2BugusKlcMOkBVxthuYU/pLsoIaZoIw9Xvv1+u+eS7RiKhO9QhEEuncEV361oGad 876ZAnln+8fAV9rX+sTyiRqj5bxxp8X1tKDNA/W97PruAd6fmYd8SiW2OjQhtYMQfTzTe2Xka5bOK T7nlkQBzGvN7Vbza12vc2cSkoks/TvMrIis9xtr9Y2Pqp23tU6l9KRB+PML4VfXkLuxaK6CBOBZ7s 3CysBciYqsMlHEUNoUojYw==; Original-Received: from [87.69.77.57] (port=2403 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPq7S-00084y-NA for help-gnu-emacs@gnu.org; Thu, 03 Mar 2022 13:24:07 -0500 In-Reply-To: <87ee3ivs6f.fsf@yandex.com> (m43cap@yandex.com) X-Mailman-Approved-At: Thu, 03 Mar 2022 13:31:00 -0500 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:136346 Archived-At: > 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.