From unknown Thu Aug 14 12:23:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9841 <9841@debbugs.gnu.org> To: bug#9841 <9841@debbugs.gnu.org> Subject: Status: 23.3; rmail-edit-current-message adds extra '>'s to Froms... Reply-To: bug#9841 <9841@debbugs.gnu.org> Date: Thu, 14 Aug 2025 19:23:10 +0000 retitle 9841 23.3; rmail-edit-current-message adds extra '>'s to Froms... reassign 9841 emacs submitter 9841 mark.lillibridge@hp.com severity 9841 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 22 15:07:42 2011 Received: (at submit) by debbugs.gnu.org; 22 Oct 2011 19:07:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHguz-0005z1-Jh for submit@debbugs.gnu.org; Sat, 22 Oct 2011 15:07:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHgux-0005yo-Ao for submit@debbugs.gnu.org; Sat, 22 Oct 2011 15:07:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHgtX-0004it-Vl for submit@debbugs.gnu.org; Sat, 22 Oct 2011 15:06:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:59574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgtX-0004ip-TL for submit@debbugs.gnu.org; Sat, 22 Oct 2011 15:06:11 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgtW-0005z3-Vs for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 15:06:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHgtV-0004iU-7s for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 15:06:10 -0400 Received: from madara.hpl.hp.com ([192.6.19.124]:35532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgtU-0004iB-TS for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 15:06:09 -0400 Received: from masterns.hpl.hp.com (masterns.hpl.hp.com [15.0.48.4]) by madara.hpl.hp.com (8.14.4/8.14.4/HPL-PA Relay) with ESMTP id p9MJ645f009459 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 22 Oct 2011 12:06:05 -0700 Received: from MDL ([16.213.31.72]) by masterns.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id p9MJ60JH000409; Sat, 22 Oct 2011 12:06:02 -0700 From: Mark Lillibridge To: bug-gnu-emacs@gnu.org Subject: 23.3; rmail-edit-current-message adds extra '>'s to Froms... Date: Sat, 22 Oct 2011 12:05:57 -0700 Message-ID: <8762jgn8x6.fsf@hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.71 on 15.0.152.124 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: mark.lillibridge@hp.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Start with a Rmail message (this one will do) not containing MIME that contains lines like the following: >>From level 1 >>>From level 2 >>>>From level 3 Hit 'e' to edit the message. Notice that nothing changes. Now hit ^c^c or ^c^] to stop editing (the later is supposed to abort, leaving the message unchanged). Notice that your message now has one more > in front of each of the from lines: >>>From level 1 >>>>From level 2 >>>>>From level 3 You can repeat this as many times as you like, adding more and more >'s. Towards a patch, I notice that rmail-cease-edit has the following code: rmailedit.el:135: ;; Disguise any "From " lines so they don't start a new message. (goto-char (point-min)) (or rmail-old-pruned (forward-line 1)) (while (re-search-forward "^>*From " nil t) (beginning-of-line) (insert ">") (forward-line)) There is no corresponding code in the rmail-edit-current-message or the viewing code that I can find. This probably needs more thought, but I think the decode code should remove one >, and the incorporate new messages and done editting code should add one > (as above). Note this is related to bug #6574: Rmail 23 uses a broken mailbox format (mboxo) instead of a sane one like mboxrd. I note that fetchmail to mbox loses information because it only adds a > to From's without one already. This is arguably not Rmail's fault, however. - Mark From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 04:04:21 2012 Received: (at 9841-done) by debbugs.gnu.org; 7 Dec 2012 09:04:21 +0000 Received: from localhost ([127.0.0.1]:57831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tgtr1-0002Z5-Ja for submit@debbugs.gnu.org; Fri, 07 Dec 2012 04:04:20 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:37385) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tgtr0-0002Yy-58 for 9841-done@debbugs.gnu.org; Fri, 07 Dec 2012 04:04:18 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Tgtqg-0007vC-Ce; Fri, 07 Dec 2012 04:03:58 -0500 From: Glenn Morris To: 9841-done@debbugs.gnu.org Subject: Re: bug#9841: 23.3; rmail-edit-current-message adds extra '>'s to Froms... References: <8762jgn8x6.fsf@hp.com> X-Spook: FBI industrial intelligence [Hello to all my friends and X-Ran: (47]<~MV$+@`wkL-AZ}HGO>y?fe\1X=0'5$?&@te?rtbwb!r],e-:/gCB,f<*tp2o1hAi1 X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 07 Dec 2012 04:03:58 -0500 In-Reply-To: <8762jgn8x6.fsf@hp.com> (Mark Lillibridge's message of "Sat, 22 Oct 2011 12:05:57 -0700") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 9841-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Version: 24.4 Mark Lillibridge wrote: > Start with a Rmail message (this one will do) not containing MIME that > contains lines like the following: Actually, I can only reproduce this with a message that _is_ MIME, ie has a "MIME-version: 1.0" header (which almost everything does). For non-MIME messages, rmail-show-message-1 _does_ add >, which is why rmail-cease-edit tries to put them back. Anyway, I installed a change to make it not do that for MIME messages, which have not been unescaped during display. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 01 16:55:17 2013 Received: (at 9841) by debbugs.gnu.org; 1 Jan 2013 21:55:18 +0000 Received: from localhost ([127.0.0.1]:39377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tq9no-0002bo-HX for submit@debbugs.gnu.org; Tue, 01 Jan 2013 16:55:17 -0500 Received: from alum-mailsec-scanner-4.mit.edu ([18.7.68.15]:53157) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tq9nl-0002bg-NT for 9841@debbugs.gnu.org; Tue, 01 Jan 2013 16:55:15 -0500 X-AuditID: 1207440f-b7f276d0000008b2-bc-50e35af391af Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by alum-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id FC.77.02226.3FA53E05; Tue, 1 Jan 2013 16:53:55 -0500 (EST) Received: from foil.strangled.net (c-67-188-235-212.hsd1.ca.comcast.net [67.188.235.212]) (authenticated bits=0) (User authenticated as mdl@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id r01Lrr5Y005105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 1 Jan 2013 16:53:54 -0500 From: Mark Lillibridge To: <9841@debbugs.gnu.org>, rgm@gnu.org Subject: Re: bug#9841: closed (Re: bug#9841: 23.3; rmail-edit-current-message adds extra '>'s to Froms...) In-Reply-To: (message from GNU bug Tracking System on Fri, 7 Dec 2012 09:05:02 +0000) Date: Tue, 01 Jan 2013 13:53:52 -0800 Message-ID: <87wqvwtvrj.fsf@foil.strangled.net> MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKIsWRmVeSWpSXmKPExsUixO6iqPs56nGAwfZVVhaPNnxnt5j68Qyb Re/Ck8wOzB5/339g8rg4aR+zR9s0swDmKG6bpMSSsuDM9Dx9uwTujINnu5gLHnFU/Nt9haWB 8SdbFyMnh4SAicTJM73MELaYxIV764HiXBxCApcZJf4veMoE4VxhkrjX2cwKUsUmoCkx/dl3 dhBbREBd4uyxVywgtrBAjsTK7Z8ZQRo4BSYzShxaPBdshZCAlMTSRSfAGlgEVCUerp4INohX QF/i1ZQ2KFtQ4uTMJ2CDmAUkJA6+eME8gZF3FpLULCSpBYxMqxjlEnNKc3VzEzNzilOTdYuT E/PyUot0TfRyM0v0UlNKNzFCAox/B2PXeplDjAIcjEo8vE26jwOEWBPLiitzDzFKcjApifIm uAGF+JLyUyozEosz4otKc1KLDzFKcDArifAWf3kUIMSbklhZlVqUD5OS5mBREudVX6LuJySQ nliSmp2aWpBaBJOV4eBQkuB9Fwk0VLAoNT21Ii0zpwQhzcTBCTKcS0qkODUvJbUosbQkIx4U TfHFwHgCSfEA7T0I0s5bXJCYCxSFaD3FaMzx48+Np4wcv1befMooxJKXn5cqJc57GKRUAKQ0 ozQPbhEstbxiFAf6W5h3I0gVDzAtwc17BbSKCWiVFsMDkFUliQgpqQbGmMSjTz84HCvaY3Le ZRnDVNlppV+k80/cTBT4Off9IZ34na3M/2x+2ubweAe2cKU+vnTd++/h/4vC9T+5dRyq6Kxi sbzKF7lzbo+iVd4H1vWBwXr/pb5ppqZHdG2oOhomq/BF8RX/dpcXWZlLjCpZPt73ltZ7yc7t dOvLvJMyD1U2pN8J9DiuxFKckWioxVxUnAgArFC4+QgDAAA= X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 9841 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: mdl@alum.mit.edu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Glenn Morris wrote: > Mark Lillibridge wrote: > > > Start with a Rmail message (this one will do) not containing MIME that > > contains lines like the following: > > Actually, I can only reproduce this with a message that _is_ MIME, ie > has a "MIME-version: 1.0" header (which almost everything does). > For non-MIME messages, rmail-show-message-1 _does_ add >, which is > why rmail-cease-edit tries to put them back. Anyway, I installed a > change to make it not do that for MIME messages, which have not been > unescaped during display. You're right; this problem does not occur with non-MIME messages under 24.2 (my current test system). I think your patch may not work correctly if the user adds a "From " line to a MIME message. Seems like there are two choices: (1) give an error in that case and refuse to exit editing (similar to the screwed up headers case) or (2) unescape From lines when the edit starts and re-escape them when the edit finishes. (2) seems friendlier to users as it means users don't have to manually escape From lines when editing. - Mark From unknown Thu Aug 14 12:23:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 30 Jan 2013 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator