From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mark Lillibridge Newsgroups: gmane.emacs.bugs Subject: bug#10080: 23.3; Rmail shows an extra blank line at the end when displaying a non-MIME message Date: Sun, 25 Sep 2022 09:36:27 -0700 Message-ID: <87a66nbed0.fsf@alum.mit.edu> References: <8762ifeps3.fsf@hp.com> Reply-To: mdl@alum.mit.edu Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34843"; mail-complaints-to="usenet@ciao.gmane.io" To: 10080@debbugs.gnu.org, larsi@gnus.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 25 18:37:16 2022 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 1ocUd1-0008t0-QK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Sep 2022 18:37:16 +0200 Original-Received: from localhost ([::1]:54802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocUd0-00020S-DR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Sep 2022 12:37:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocUco-0001xz-VX for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2022 12:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocUco-00007o-N4 for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2022 12:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ocUco-0004cf-IC for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2022 12:37:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <8762ifeps3.fsf@hp.com> Resent-From: Mark Lillibridge Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Sep 2022 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10080 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 10080-submit@debbugs.gnu.org id=B10080.166412380117740 (code B ref 10080); Sun, 25 Sep 2022 16:37:02 +0000 Original-Received: (at 10080) by debbugs.gnu.org; 25 Sep 2022 16:36:41 +0000 Original-Received: from localhost ([127.0.0.1]:48446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocUcS-0004c4-Gh for submit@debbugs.gnu.org; Sun, 25 Sep 2022 12:36:40 -0400 Original-Received: from mail-bn7nam10on2053.outbound.protection.outlook.com ([40.107.92.53]:6529 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocUcP-0004bp-Cx for 10080@debbugs.gnu.org; Sun, 25 Sep 2022 12:36:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OSPIQe0JhRlGgwBKrXg+ew3/dGDTRsctFcNYedl5WfhTE97gRSDfkOQtQXpXQVZpxpBg5PFu2L9PECxa+xrZfMztqy4+ZBUtuiacYH77QmP3PJgq1hlSsPvU6tcuJOLYKWCU7G5Y0vuQM1yTQlolile/zL9Xf7u8ga/p947uGVzbrrUVbT5asqmU8j9zBXpwbVCMuacDbKmzSXAZSrBW+z6JztDVJ4ylbbNAHCuku5ggHvS8WR5M8rnpfYFfur5ZttVNd+PMYESbQIIAwW94NOSKYwlU1QEr3CnUp9g501OAxLb7Fy27jU2leY7Y2vFufgTN0KOd0KtLVrjbAsX0dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3y2+p8krTUSIHeLp0EBrEdAQK4zegLKVNwq1UttGxOU=; b=egq7IZi82iebJMnqO8QqFFqCtbVbB2vdfoboV4caPrWKxwKneFUTWrAftUsFUWeQYfT5kLVyoe1zHt6xiKLsD4t4Zuk/6Soqbjl70ObWD86b1YSt2a4KFzVoJl+XDY4dfr9hDSOMVqi20CJ66BThJy0riwxpaXaL4pqriSkrbAPcZe2tF6SKvoRgoj3W7TZE6f7fVGrU+/nxipHdt4yE7PGh5MzsBoZ8SnBiI/j7RWRvVYcqtrgeKyauTtMhbFx/ncZXW/yHyHUKwEF9haAXcFB8C+8e7nBQSTB8MfDlJ/Eb4Kk4h0kVo7bXuAUA2tYUGkxbvCSzSPhAFFjsajMSnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 18.7.68.33) smtp.rcpttodomain=debbugs.gnu.org smtp.mailfrom=alum.mit.edu; dmarc=pass (p=none sp=none pct=100) action=none header.from=alum.mit.edu; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alum.mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3y2+p8krTUSIHeLp0EBrEdAQK4zegLKVNwq1UttGxOU=; b=GeyEt4G95uyZLUTSx8i+MsU+YdOTYaa/EXQ8rZU92lpet5mzFVekXhx2ZG8qAc2ELZdYaY4AvQ4l10XSEaeUPTuP733rICrVL4je95qLtGOMf03G6UihcUtZEbPiKSTdAqMYtMZIBak4PiiJsT9ZzqC6bCCyu7Y6yDDvgXoLZtI= Original-Received: from DM6PR10CA0015.namprd10.prod.outlook.com (2603:10b6:5:60::28) by MW4PR12MB5642.namprd12.prod.outlook.com (2603:10b6:303:187::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.24; Sun, 25 Sep 2022 16:36:30 +0000 Original-Received: from DM3NAM02FT019.eop-nam02.prod.protection.outlook.com (2603:10b6:5:60:cafe::14) by DM6PR10CA0015.outlook.office365.com (2603:10b6:5:60::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.24 via Frontend Transport; Sun, 25 Sep 2022 16:36:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 18.7.68.33) smtp.mailfrom=alum.mit.edu; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=alum.mit.edu; Received-SPF: Pass (protection.outlook.com: domain of alum.mit.edu designates 18.7.68.33 as permitted sender) receiver=protection.outlook.com; client-ip=18.7.68.33; helo=outgoing-alum.mit.edu; pr=C Original-Received: from outgoing-alum.mit.edu (18.7.68.33) by DM3NAM02FT019.mail.protection.outlook.com (10.13.4.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14 via Frontend Transport; Sun, 25 Sep 2022 16:36:30 +0000 Original-Received: from foil (c-71-198-24-3.hsd1.ca.comcast.net [71.198.24.3]) (authenticated bits=0) (User authenticated as mdl@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 28PGaRVE002051 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 25 Sep 2022 12:36:28 -0400 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM3NAM02FT019:EE_|MW4PR12MB5642:EE_ X-MS-Office365-Filtering-Correlation-Id: ce3815d6-8705-474c-f3ad-08da9f1419bd X-LD-Processed: 3326b102-c043-408b-a990-b89e477d582f,ExtAddr,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EqwUMDR/qLZSxj2BUUJqDNtGjF3013lLNQy+x9dmuX6jsm7pSjathsPWcd9VWgy4NtdQOdHoVz722WMwBDOljzXibm3nRyiKz15fpZvo1+2cdWn8RpTFubMFTNB4dE857bgLp1jRGyIf62tmIYMvkk+f+QQ7shM71kRSndwyoaP0AzFMVHjED7YL+Iv7tl3GTqxkVGpAd3/GpPoisaenJNWgESmLk5HY0n5v6O+n5BCNzbj6ZiwGB17djj4DkM8KYKBM3BAOpFfpK/ZQ6E80XJrwTmPLvrOzbfGisaTgMeNYYIirm0+dClVFKhP5amDtJAUUydlTox2tn3A/AufZ7Y1D7YE01cfSGTSfELYB0GqIjE78i6VCE6fibLQVMjkOI/ykxPiMQwyErEL+txHFK7FXOKQ7rwbiy4sL7EBnoxKdPiWOkUZZuoziFIPeN1Tpm1ufJqYHeyvGWg1qhpS3IMsDGXN0cLVzGzThpVxC0TsSNT22kzNzUf5Ah6U/164gpmPCxcljBPaFSou7lnDvx+vxjKcpvtcF3acvYV+n7r5ifbaF9wBFeQ5G1FRNj2f3D4D9ohGqxlLJJSalyv2TD3LJp+kEvqqmN5JlqyY8JTj9peM/hNBkr3jSL8XRL5+7J/eGiA1mSPO8Jiv4gbhHbV/uKQzVkIw0bbZ8Hh3+VCbWp8wusPHotTyjdztBBqtVxg6CF73PL9+G+mP6YPHMeQ== X-Forefront-Antispam-Report: CIP:18.7.68.33; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:outgoing-alum.mit.edu; PTR:outgoing-alum.mit.edu; CAT:NONE; SFS:(13230022)(136003)(376002)(39860400002)(396003)(346002)(451199015)(36840700001)(46966006)(26005)(2616005)(41300700001)(2906002)(956004)(316002)(786003)(82740400003)(15650500001)(3450700001)(8676002)(70586007)(40480700001)(75432002)(8936002)(336012)(70206006)(47076005)(82310400005)(83380400001)(7596003)(235185007)(966005)(478600001)(86362001)(5660300002)(356005)(186003)(41320700001)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: alum.mit.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2022 16:36:30.4513 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce3815d6-8705-474c-f3ad-08da9f1419bd X-MS-Exchange-CrossTenant-Id: 3326b102-c043-408b-a990-b89e477d582f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3326b102-c043-408b-a990-b89e477d582f; Ip=[18.7.68.33]; Helo=[outgoing-alum.mit.edu] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT019.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5642 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" Xref: news.gmane.io gmane.emacs.bugs:243608 Archived-At: --=-=-= Content-Type: text/plain Lars wrote: > I'm unable to reproduce this in Emacs 28, but I'm not quite sure I'm > testing it correctly. Are you still seeing this issue in recent Emacs > versions? Yes, I can reproduce this in version 28.1. I'm attaching a *mbox* file (this is the format used by rmail), lightly edited from one of my older rmail files to hide email addresses. It has two messages, the first with zero blank lines at the end and last with 2 blank lines at the end. If you find file it then do M-x rmail-mode and look at the first message, you will see that it has an extra blank line at the end when displayed. The last one doesn't. (go to the end of message with esc > or turn on line numbering to see where the displayed message ends.) If you look at the rmail file before doing rmail-mode, you can see the underlying formatting. You will see a blank line between the first and second message; this is part of the mbox formatting, not a part of either message. from https://en.wikipedia.org/wiki/Mbox The mbox format uses a single blank line followed by the string 'From ' (with a space) to delimit messages; this can create ambiguities if a message contains the same sequence in the message text. (The original reproduction instructions probably no longer work because it's actually quite hard to send a message that's not using MIME these days.) To add insult to injury, if you attempt to forward the message, Rmail will include the spurious blank line in the message it forwards. I hit 'f' for this in emacs28.1 -q and get a # part with the blank line before the closing tag. - Mark PS, I have gzipped the mbox file to prevent intermediate mailers from corrupting it. --=-=-= Content-Type: application/gzip Content-Disposition: attachment; filename=sample_mbox.gz Content-Transfer-Encoding: base64 H4sICKN9MGMAA3NhbXBsZV9tYm94AL1Va0/jOBT9jH/FlebDgNR482hpG9guAVqpI1gh2t0Z7WiF 3MZtTB07EzuUzq/f67SIKVBYtKOtUuXlnHvO8X0MSp1DnkoYVQqSooQwxCP28ehC6PsB+eJdXybD Cy8Zj6+Hp3+M+6MYvM0PX57pVKi5N1oZy/MYKpXyqUh56lVK3JNrPuXijqcxTFZgyqmXMyFpwSiu olOdH4FI4XOS+M3DoHXkSDQcg5oIBn+g0gHPb/s+7F+djw+2QUu9TFdPEZMkCLpRsAMwiFuHa0By ziyP31x1yY1hc+4NMeSxW+A3w8hv+QHdBDp5yqJHBmhsDJesXMCFkFJMSpHOORyj1z0y1rEz/YTJ Kqe5sJSnFRlVk1s+tTF8zoTlS2RWQslmFu39DTUXcuU9fPcYiBACAMOPOdhMqAWuBT0DXc6ZEt/d HVPA0juubFXqysDyGTbYUhSU/K4hxccGhIJcqBRW3DZgUlkHbCCp5pWxCAxG59yKnIPi9xZMleeI xUpOCm2MmAgprOCGAiSbTwstlEWKKdw6CCkWHKyGmQuiET/TS8iZWjniK12RXMwzCxOOTJAmx7xK EW1Yv1yrrK9eWOa4m2qaASNOVAMKyZnhILkFJLxQekkJ2at/HowzphamsbmHeq8IuaIjCskPjv0K U8mMgeFw6A3/dLoWrAFKW1iKvFjBkgnrCeVJoTh6WogUMZ1vbolQhuFjLmzGS0oxussLuNWZOil5 yqZOHO7WVvlFcdCJo8P/q/y+JEnYbAXtl6plTSV8f/mFXb+zGzDYFNYW1PecOXpYVXjlsAr2zZ0w rDZ2Ju4bMHPmVYZjLUEQRs3WAdnDy9NmPxicn536R3CpXcToMSK2D4wYdjFi00nob0uoEWdMTrWi G3MM5ay0Ge7ngirMnP3XX38N/TYNgzYNQp+2m38jpX8j5gDTx2bQH12Or2rP+v1BczA4a5O9GVaZ 6xPPu8pufe3X9GVcigpDO+e8UNzNFrcTmgrsPgV1tW6KEpOopvc1OGzRsOkU+TTw2xs5bzjUv/A6 N92b6Cb6pUO7NHoqDlPM73YO39C2I1vC1o70q7Xhv+DS5c9GZR1Z6imTyOte5BDhzsCHAPbP+UQw dbDOmaBZ/iU/eb7vh7MBnt5PDY9WtEnkTWN+7OHX/OU+vjVK+k9JnKw1PEyPT9gm4Hot8PhZz+jt nF7b3EgPfs6I6MF/HxI9+FljovfSBHj/oOjBK6PCmVaU3Fps81xKQMopVAUwvF6LcgFhqSuZAhaI wdZbgrBr2Suskgaxma7mWS1syVAhappjEAZGOmJyhdSsMxu/ZWg+w8HCP5Yonkm3WYRNUD6S8TyX Dzjw/wHZDMXytAkAAA== --=-=-=--