GNU bug report logs - #67360
29.1; MH-E forwarded email has a mangled default Subject header

Previous Next

Package: emacs;

Reported by: Chris Siebenmann <cks.emacsbugs-01 <at> cs.toronto.edu>

Date: Wed, 22 Nov 2023 08:26:02 UTC

Severity: normal

Found in version 29.1

Done: Bill Wohler <wohler <at> newt.com>

Bug is archived. No further changes may be made.

Full log


Message #28 received at 67360 <at> debbugs.gnu.org (full text, mbox):

From: Bill Wohler <wohler <at> newt.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: cks.emacsbugs-01 <at> cs.toronto.edu, kupfer <at> rawbw.com, 67360 <at> debbugs.gnu.org
Subject: Re: bug#67360: 29.1;
 MH-E forwarded email has a mangled default Subject header
Date: Mon, 01 Jan 2024 10:35:13 -0800
Eli Zaretskii <eliz <at> gnu.org> wrote:

> > cc: Mike Kupfer <kupfer <at> rawbw.com>,
> >     Chris Siebenmann <cks.emacsbugs-01 <at> cs.toronto.edu>,
> >     67360 <at> debbugs.gnu.org
> > From: Bill Wohler <wohler <at> newt.com>
> > Comments: In-reply-to Bill Wohler <wohler <at> newt.com>
> >    message dated "Sat, 30 Dec 2023 14:05:29 -0800."
> > Date: Sun, 31 Dec 2023 08:44:40 -0800
> > 
> > Eli,
> > 
> > Would you prefer that I apply Mike's patch to emacs-29 or master?
> > 
> > > diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
> > > index 92d31bf1826..0d1dcdf626a 100644
> > > --- a/lisp/mh-e/mh-comp.el
> > > +++ b/lisp/mh-e/mh-comp.el
> > > @@ -574,7 +574,7 @@ mh-forward
> > >          (setq orig-subject (mh-get-header-field "Subject:")))
> > >        (let ((forw-subject
> > >               (mh-forwarded-letter-subject orig-from orig-subject)))
> > > -        (mh-insert-fields "Subject:" forw-subject)
> > > +        (mh-modify-header-field "Subject" forw-subject t)
> > >          (goto-char (point-min))
> > >          ;; Set the local value of mh-mail-header-separator according to what is
> > >          ;; present in the buffer...
> 
> If you think it's safe enough for the release branch, emacs-29 is fine
> with me.

I think so, yes. I've pushed the fix and sent what may be my first
message to a *-done email address. It's never too late to start.

-- 
Bill Wohler <wohler <at> newt.com> aka <Bill.Wohler <at> nasa.gov>
http://www.newt.com/wohler/, GnuPG ID:610BD9AD




This bug report was last modified 1 year and 172 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.