GNU bug report logs - #20396
24.5; incorrect subject in replies

Previous Next

Package: emacs;

Reported by: Nicolas Graner <nicolas.graner <at> u-psud.fr>

Date: Tue, 21 Apr 2015 14:36:02 UTC

Severity: normal

Found in version 24.5

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nicolas Graner <nicolas.graner <at> u-psud.fr>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 20396 <at> debbugs.gnu.org
Subject: bug#20396: 24.5; incorrect subject in replies
Date: Mon, 27 Apr 2015 22:45:44 +0200
Glenn Morris wrote:
> 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)

Yes, it works. Thanks!

Nicolas


> --- 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))




This bug report was last modified 10 years and 32 days ago.

Previous Next


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