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.bugs Subject: bug#65071: 29.1; RMAIL changed on disk leads to rmail-error-bad-format Date: Sat, 05 Aug 2023 13:00:07 +0300 Message-ID: <83zg35staw.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14773"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65071@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 05 12:02:34 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 1qSE7G-0003cw-8u for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Aug 2023 12:02:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSE6m-0003x0-WF; Sat, 05 Aug 2023 06:02:05 -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 1qSE6l-0003rp-Fv for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 06:02:03 -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 1qSE6k-00036y-RF for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 06:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSE6k-00012I-Ms for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 06:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Aug 2023 10:02:02 +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.16912296683883 (code B ref 65071); Sat, 05 Aug 2023 10:02:02 +0000 Original-Received: (at 65071) by debbugs.gnu.org; 5 Aug 2023 10:01:08 +0000 Original-Received: from localhost ([127.0.0.1]:55694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSE5r-00010Y-JG for submit@debbugs.gnu.org; Sat, 05 Aug 2023 06:01:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSE5p-0000zx-1u for 65071@debbugs.gnu.org; Sat, 05 Aug 2023 06:01:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSE5h-00032P-Et; Sat, 05 Aug 2023 06:00:59 -0400 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=QdPVKU7gENRXPidPb6P5uDLIqdZuxEYxtM3vr8lCHkQ=; b=YOHvSHZzsM67 6rN/v7kfqWtn871OaKNUH3GVVoE2m6u5zNatWOHlZfmwJ5aDXdX46CdLUsndWnLi5vLCyyw7eYcZn Wa6ozU9HlL6aV/kqe749Edi9aOLQZ7AcHGx7qzg8Q0qU1OKUdhKMc+gfMpE7ewLxSuzOMMXCN8XB7 zKM0ZIFJRDum5DYBxu/w9ZUmJSj48S40xbbkqH9HQ+o+N9iRt7dIsgwJyygE3oI9BRPG24RqrRzci mFzG7zyEEhsmetyhBUNrz2ntr7M70RNWqkYSWhLVtmUWnZ9sHsXWlAPQD4JO22ctpKtGpDGrAS+zY ebPb9FWE8LoM1v72xjJP3g==; Original-Received: from [87.69.77.57] (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 1qSE4e-0003Kb-Bq; Sat, 05 Aug 2023 06:00:10 -0400 In-Reply-To: (emacs-bug@rulnick.com) 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:266757 Archived-At: > From: > Date: Fri, 04 Aug 2023 14:18:52 -0400 > > In Emacs 29.1, starting with no ~/RMAIL file and empty primary mail > spool file ('$' indicates command line terminal prompt outside Emacs): > > $ mail me@foo ... # send a message to myself > > emacs -Q > > M-x RMAIL # retrieves/reads message > > $ cat /dev/null > ~/RMAIL # clear (or otherwise modify) RMAIL file > > $ mail me@foo ... # send another message to myself > > M-x RMAIL > > "File RMAIL changed on disk. Reread from disk? (yes or no) " yes > > "rmail-error-bad-format: Message is not a valid RFC 822 (or later) > message" and: > > mode changes from RMAIL to fundamental > > ~/RMAIL file on disk looks good (proper RFC 822 file) > > ~/RMAIL file as visited in buffer looks bad, can be seen (e.g., > upon immediate save) to be missing top "From " and other header > lines ("Return-Path:", "Received:", etc.) Does using "M-x revert-buffer RET" avoid the problem? In any case, this is not how you are supposed to read new email into an existing Rmail buffer. You are supposed to use the 'g' command.