From unknown Sat Aug 16 13:40:36 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#12214 <12214@debbugs.gnu.org> To: bug#12214 <12214@debbugs.gnu.org> Subject: Status: rmail-output-read-file-name Error in Summary (with Patch) Reply-To: bug#12214 <12214@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:40:36 +0000 retitle 12214 rmail-output-read-file-name Error in Summary (with Patch) reassign 12214 emacs submitter 12214 tftorrey@tftorrey.com (T.F. Torrey) severity 12214 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 16 17:54:25 2012 Received: (at submit) by debbugs.gnu.org; 16 Aug 2012 21:54:25 +0000 Received: from localhost ([127.0.0.1]:34231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T281I-0002rw-A2 for submit@debbugs.gnu.org; Thu, 16 Aug 2012 17:54:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34691) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T27s6-0002dP-W8 for submit@debbugs.gnu.org; Thu, 16 Aug 2012 17:44:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T27jT-0006O8-Uj for submit@debbugs.gnu.org; Thu, 16 Aug 2012 17:36:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DATE_IN_PAST_12_24, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T27jT-0006Nz-Qv for submit@debbugs.gnu.org; Thu, 16 Aug 2012 17:35:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T27jP-0003Dc-VW for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2012 17:35:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T27jM-0006N0-1V for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2012 17:35:55 -0400 Received: from slow3-v.mail.gandi.net ([217.70.178.89]:45966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T27jL-0006Lt-QP for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2012 17:35:51 -0400 X-Policy: 217.70.183.195 is whitelisted X-Policy: 217.70.183.195 is whitelisted Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by slow3-v.mail.gandi.net (Postfix) with ESMTP id 3634039F08 for ; Thu, 16 Aug 2012 23:35:51 +0200 (CEST) X-Originating-IP: 217.70.178.143 Received: from mfilter15-d.gandi.net (mfilter15-d.gandi.net [217.70.178.143]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 4E71BA80A5 for ; Thu, 16 Aug 2012 23:35:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter15-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter15-d.gandi.net (mfilter15-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id mSisDyYDI5eD for ; Thu, 16 Aug 2012 23:35:47 +0200 (CEST) X-Originating-IP: 74.43.103.95 Received: from lapcat.tftorrey.com.tftorrey.com (unknown [74.43.103.95]) (Authenticated sender: tftorrey@tftorrey.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 9F4ACA80A6 for ; Thu, 16 Aug 2012 23:35:46 +0200 (CEST) From: tftorrey@tftorrey.com (T.F. Torrey) To: bug-gnu-emacs@gnu.org Subject: rmail-output-read-file-name Error in Summary (with Patch) Date: Wed, 15 Aug 2012 16:20:03 -0600 Message-ID: <87k3wzztkc.fsf@lapcat.tftorrey.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 16 Aug 2012 17:54:22 -0400 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: -5.9 (-----) Hello developers, I'm happy to report a bug and a fix. Description: When in an Rmail summary buffer, rmail-output-read-file-name looks for matches in the summary buffer rather than in the rmail buffer, and thus fails to find the proper match. The patch below corrects this behavior. ChangeLog entry: make rmail-output-read-file-name use rmail-buffer when in summary I was unable to download the most recent Emacs from bazaar, but I was able to get the source from the Ubuntu archive, and I think it is current in this regard. Because of this, I also had to make a slightly different diff, but I think it will work. It's only a two-line change anyway. Diff: diff -c -L rmailout.el -L \#\ rmailout.el /tmp/buffer-content-19356i1B *** rmailout.el --- # *************** *** 59,64 **** --- 59,65 ---- (defun rmail-output-read-file-name () "Read the file name to use for `rmail-output'. Set `rmail-default-file' to this name as well as returning it." + (with-current-buffer rmail-buffer (let ((default-file (let (answer tail) (setq tail rmail-output-file-alist) *************** *** 87,92 **** --- 88,94 ---- (expand-file-name (or read-file (file-name-nondirectory default-file)) (file-name-directory default-file))))))) + ) (defun rmail-delete-unwanted-fields (preserve) "Delete all headers matching `rmail-fields-not-to-output'. Diff finished. Wed Aug 15 15:35:47 2012 All the best, Terry -- T.F. Torrey From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 17 16:48:56 2012 Received: (at 12214-done) by debbugs.gnu.org; 17 Aug 2012 20:48:56 +0000 Received: from localhost ([127.0.0.1]:35926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2TTU-0004FW-Dp for submit@debbugs.gnu.org; Fri, 17 Aug 2012 16:48:56 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:42148) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2TTR-0004FO-Os for 12214-done@debbugs.gnu.org; Fri, 17 Aug 2012 16:48:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1T2TKm-0005NQ-87; Fri, 17 Aug 2012 16:39:56 -0400 From: Glenn Morris To: 12214-done@debbugs.gnu.org Subject: Re: bug#12214: rmail-output-read-file-name Error in Summary (with Patch) References: <87k3wzztkc.fsf@lapcat.tftorrey.com> X-Spook: spy George W. Bush FSF virus enigma AGT. AMME world X-Ran: 4!{Y"TR+yLubZW2:o9)v7.qcP7Ab29Shk1s}StE2i=C':xq2cRIc]B2y}(6vN>S}qn$9-d X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 17 Aug 2012 16:39:56 -0400 In-Reply-To: <87k3wzztkc.fsf@lapcat.tftorrey.com> (T. F. Torrey's message of "Wed, 15 Aug 2012 16:20:03 -0600") 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: -6.9 (------) X-Debbugs-Envelope-To: 12214-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: -6.9 (------) Version: 24.3 Thanks for the report. I installed a slightly more complicated fix to the Emacs trunk, currently expected to appear as Emacs 24.3 at some point. From unknown Sat Aug 16 13:40:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 15 Sep 2012 11:24:03 +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