unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Chris Siebenmann <cks.emacsbugs-01@cs.toronto.edu>,
	Bill Wohler <wohler@newt.com>
Cc: 67360@debbugs.gnu.org, cks.emacsbugs-01@cs.toronto.edu
Subject: bug#67360: 29.1; MH-E forwarded email has a mangled default Subject header
Date: Wed, 22 Nov 2023 16:42:30 +0200	[thread overview]
Message-ID: <83il5thmsp.fsf@gnu.org> (raw)
In-Reply-To: <2330410.1700614164@apps0.cs.toronto.edu> (message from Chris Siebenmann on Tue, 21 Nov 2023 19:49:24 -0500)

> Cc: cks.emacsbugs-01@cs.toronto.edu
> From: Chris Siebenmann <cks.emacsbugs-01@cs.toronto.edu>
> 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/.





  reply	other threads:[~2023-11-22 14:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-22  0:49 bug#67360: 29.1; MH-E forwarded email has a mangled default Subject header Chris Siebenmann
2023-11-22 14:42 ` Eli Zaretskii [this message]
2023-11-27  3:49   ` Mike Kupfer
2023-12-30 22:05     ` Bill Wohler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-31 16:44       ` Bill Wohler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-31 19:17         ` Eli Zaretskii
2024-01-01 18:35           ` Bill Wohler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-01 18:33 ` Bill Wohler via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83il5thmsp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=67360@debbugs.gnu.org \
    --cc=cks.emacsbugs-01@cs.toronto.edu \
    --cc=wohler@newt.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).