]> git.eshelyaron.com Git - emacs.git/commitdiff
In rmail, decode "encoded-words" of header components on replying.
authorKenichi Handa <handa@m17n.org>
Tue, 22 Feb 2011 01:49:06 +0000 (10:49 +0900)
committerKenichi Handa <handa@m17n.org>
Tue, 22 Feb 2011 01:49:06 +0000 (10:49 +0900)
lisp/ChangeLog
lisp/mail/rmail.el

index e0c9f552c9fb5957a331cbb4a90433b26cf8a522..a70330d102212fe884be91d12b311970f588baab 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-22  Kenichi Handa  <handa@m17n.org>
+
+       * mail/rmail.el (rmail-start-mail): Decode "encoded-words" of
+       header components.
+
 2011-02-19  Kenichi Handa  <handa@m17n.org>
 
        * mail/rmailmm.el (rmail-mime-find-header-encoding): Be sure to
index fc4b642e8bbc756737bb7a61f137c246be13c00f..5e9baed1c2eacba7058448b3f9d3d0234dff7c53 100644 (file)
@@ -3449,6 +3449,16 @@ does not pop any summary buffer."
        (setq yank-action (list 'insert-buffer replybuffer)))
     (setq others (cons (cons "cc" cc) others))
     (setq others (cons (cons "in-reply-to" in-reply-to) others))
+    (setq others
+         (mapcar #'(lambda (elt)
+                     (cons (car elt) (if (stringp (cdr elt))
+                                         (rfc2047-decode-string (cdr elt)))))
+                 others))
+    (if (stringp to) (setq to (rfc2047-decode-string to)))
+    (if (stringp in-reply-to)
+       (setq in-reply-to (rfc2047-decode-string in-reply-to)))
+    (if (stringp cc) (setq cc (rfc2047-decode-string cc)))
+    (if (stringp subject) (setq subject (rfc2047-decode-string subject)))
     (if same-window
        (compose-mail to subject others
                      noerase nil