From: Glenn Morris <rgm@gnu.org>
To: Nicolas Graner <nicolas.graner@u-psud.fr>
Cc: 20396@debbugs.gnu.org
Subject: bug#20396: 24.5; incorrect subject in replies
Date: Mon, 27 Apr 2015 15:30:18 -0400 [thread overview]
Message-ID: <lblhhd2wtx.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <vrior3rdh7mk.fsf@u-psud.fr> (Nicolas Graner's message of "Tue, 21 Apr 2015 16:35:15 +0200")
Nicolas Graner wrote:
> When you reply to a message whose Subject starts with "Re: ", this is
> normally stripped from the Subject before a new "Re: " is added in the
> reply. But if the Subject is RFC2047-encoded, stripping does not
> happen and you end up with "Re: Re: " in the reply.
Thanks for the report. Does this fix it?
(Apply patch, M-x emacs-lisp-byte-compile-and-load rmail.el)
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -3830,7 +3830,8 @@ use \\[mail-yank-original] to yank the original message into it."
;;; (setq cc resent-cc)))
;; Add `Re: ' to subject if not there already.
(and (stringp subject)
- (setq subject
+ (setq subject (rfc2047-decode-string subject)
+ subject
(concat rmail-reply-prefix
(if (let ((case-fold-search t))
(string-match rmail-reply-regexp subject))
next prev parent reply other threads:[~2015-04-27 19:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 14:35 bug#20396: 24.5; incorrect subject in replies Nicolas Graner
2015-04-27 19:30 ` Glenn Morris [this message]
2015-04-27 20:45 ` Nicolas Graner
2015-04-27 21:19 ` Glenn Morris
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=lblhhd2wtx.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=20396@debbugs.gnu.org \
--cc=nicolas.graner@u-psud.fr \
/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).