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#67360: 29.1; MH-E forwarded email has a mangled default Subject header Date: Wed, 22 Nov 2023 16:42:30 +0200 Message-ID: <83il5thmsp.fsf@gnu.org> References: <2330410.1700614164@apps0.cs.toronto.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14414"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67360@debbugs.gnu.org, cks.emacsbugs-01@cs.toronto.edu To: Chris Siebenmann , Bill Wohler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 22 15:43:24 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 1r5oRn-0003bg-An for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Nov 2023 15:43:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r5oRT-0007JP-0m; Wed, 22 Nov 2023 09:43:03 -0500 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 1r5oRQ-0007J0-1c for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2023 09:43:00 -0500 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 1r5oRP-0007bG-OT for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2023 09:42:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r5oRT-0004P8-09 for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2023 09:43:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Nov 2023 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67360 X-GNU-PR-Package: emacs Original-Received: via spool by 67360-submit@debbugs.gnu.org id=B67360.170066417116905 (code B ref 67360); Wed, 22 Nov 2023 14:43:02 +0000 Original-Received: (at 67360) by debbugs.gnu.org; 22 Nov 2023 14:42:51 +0000 Original-Received: from localhost ([127.0.0.1]:58558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r5oRG-0004Oa-GR for submit@debbugs.gnu.org; Wed, 22 Nov 2023 09:42:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r5oRE-0004OL-Rr for 67360@debbugs.gnu.org; Wed, 22 Nov 2023 09:42:49 -0500 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 1r5oR6-0007Y2-8r; Wed, 22 Nov 2023 09:42:40 -0500 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=YH9e2BaCTNhULTtylZEDYIshtYSa/JsDU/64+SeIQRQ=; b=mpqsaEmowZ4F b+jyDYySuA0hXuECNZ2eGt/AhJcVKcc0Pm2uMpfLTbWHuEzgVyl8pUhtLXEnnWm7yFK0bD2T8KmTP EB7X8fffGlkyOcZLQalvFWvOB6M29noElfYx5pcOiITCUuJQPy1y/uR8aA02dmtSKHnXPvSGgbm9z ZniNH97waI1DRsGECBmXYKnv2SxGAKiVBv+ZbtpqOMmmJrJcFIaRpWxNfkkwt7wkIxvQbjSM7jS38 dlv8Hx6qcpov1dOqRyQcM7ZYiScF/qgRm4lWMSEtxNfe2yFDuR89YmB8oguQRMER9bZoJtv9eJEY1 ztAWR4VxnWSZHA9rlzq+/A==; In-Reply-To: <2330410.1700614164@apps0.cs.toronto.edu> (message from Chris Siebenmann on Tue, 21 Nov 2023 19:49:24 -0500) 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:274757 Archived-At: > Cc: cks.emacsbugs-01@cs.toronto.edu > From: Chris Siebenmann > Date: Tue, 21 Nov 2023 19:49:24 -0500 > > If you attempt to forward an email message in MH-E with mh-forward > (bound to eg 'f'), then the resulting Subject: of the draft message will > be manged and come out as, for example: > > Subject: test forwarding subject (fwd) Chris Siebenmann: test forwarding subject > > The original subject of the test message was 'test forwarding subject'. > The 'test forwarding subject (forw)' portion of the mh-forward Subject > comes from the default Ubuntu 22.04 NMH 1.7.1 /etc/nmh/forwcomps file, > used by 'forw' to create the NMH draft, which has: > > Subject:%<{nmh-subject} %(trim)%(putlit)%?{subject} %(trim)%(putlit) (fwd)%> > > The portion after it comes from the fact that mh-forward creates its own > new Subject: for the forwarded message (using > mh-forwarded-letter-subject, which in turn formats with > mh-forward-subject-format), and then does: > > (mh-insert-fields "Subject:" forw-subject) > > I suspect that the intention is to replace any existing Subject:, or > perhaps mh-forward assumes that the draft won't have one. Unfortunately > for mh-forward, mh-insert-fields is specifically documented to *append* > to the existing header field value, if there is one, not overwrite it, > so the resulting Subject: of the draft is as we see here: the original > subject created by 'forw', and then an appended Subject from mh-forward. > This result is not terribly useful. > > Reproduction in emacs -Q provided you have NMH and MH-E set up: > * enter MH-E with 'M-x mh-rmail' > * arrange to have some message in your inbox that you can forward, for > example by 'F r' to see all of your inbox. > * display your test message to forward, eg cursor to it and hit Return > * start to forward with 'f' or 'M-x mh-forward'. > > NOTE: while I have reproduced this in a clean Emacs (and NMH) > environment with 'emacs -Q', this report is being filed from within my > regular customized Emacs because life is too short. You can skip over > the packages, shadowed load files, and so on. Adding Bill. I'm not sure if it is better to report MH-E-related bugs here or submit the reports to https://sourceforge.net/p/mh-e/bugs/.