From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: emacs-bug@rulnick.com Newsgroups: gmane.emacs.bugs Subject: bug#65071: 29.1; RMAIL changed on disk leads to rmail-error-bad-format Date: Sat, 05 Aug 2023 14:07:40 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35697"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65071@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 06 08:33:16 2023 Return-path: Envelope-to: geb-bug-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 1qSXKF-00099P-EX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Aug 2023 08:33:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSXK7-00013K-Ej; Sun, 06 Aug 2023 02:33:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSXK4-00012W-Bs for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 02:33:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSXK4-0005FC-3q for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 02:33:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSXK3-0005Fu-VI for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 02:33:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: emacs-bug@rulnick.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Aug 2023 06:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65071 X-GNU-PR-Package: emacs Original-Received: via spool by 65071-submit@debbugs.gnu.org id=B65071.169130353020076 (code B ref 65071); Sun, 06 Aug 2023 06:33:03 +0000 Original-Received: (at 65071) by debbugs.gnu.org; 6 Aug 2023 06:32:10 +0000 Original-Received: from localhost ([127.0.0.1]:58552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSXJ8-0005Dg-GH for submit@debbugs.gnu.org; Sun, 06 Aug 2023 02:32:10 -0400 Original-Received: from outgoing-alum.mit.edu ([18.7.68.33]:51471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSLgq-00008K-1K for 65071@debbugs.gnu.org; Sat, 05 Aug 2023 14:07:50 -0400 Original-Received: from manganese (024-177-060-128.res.spectrum.com [24.177.60.128]) (authenticated bits=0) (User authenticated as rulnick@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 375I7fJ1001989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 5 Aug 2023 14:07:42 -0400 Original-Received: from thallium (carbon [10.20.30.100]) by manganese (Postfix) with ESMTP id B9EDD10000B; Sat, 5 Aug 2023 18:07:40 +0000 (UTC) Original-Received: by thallium (Postfix, from userid 501) id 9E7B9927F15; Sat, 5 Aug 2023 14:07:40 -0400 (EDT) In-Reply-To: <83sf8xsqwf.fsf@gnu.org> (message from Eli Zaretskii on Sat, 05 Aug 2023 13:52:00 +0300) X-Mailman-Approved-At: Sun, 06 Aug 2023 02:32:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266837 Archived-At: I hope the receipe below is clearer. In Emacs 29.1, starting with no ~/RMAIL file and empty primary mail spool file (please note that '$' indicates Bash prompt in Terminal independent of Emacs): $ mail me@foo ... # send a message to myself $ emacs -Q (in Emacs) M-x rmail RET # retrieves/reads message $ cat /dev/null > ~/RMAIL # clear RMAIL file $ mail me@foo ... # send another message to myself (in Emacs) g "File RMAIL changed on disk. Reread from disk? (yes or no) " yes RET "rmail-error-bad-format: Message is not a valid RFC 822 (or later) message"; Emacs mode changes from RMAIL to Fundamental At this point the ~/RMAIL file on disk looks good (proper RFC 822 file), but the ~/RMAIL file as visited in buffer looks bad, as can be seen (e.g., upon immediate save) to be missing top "From " and other header lines ("Return-Path:", "Received:", etc.). I have many years experience with Emacs and RMAIL and this behavior is new as of 29.1 or another very recent version of Emacs.