Commit b59ee24d authored by Peter S Galbraith's avatar Peter S Galbraith

Decode RFC2047 encoded Subject lines for mail replies.

parent ead6f8f5
2010-05-14 Peter S Galbraith <psg@debian.org>
* mh-mime.el (mh-decode-message-subject): New function to decode
RFC2047 encoded Subject lines. Used for reply drafts.
* mh-comp.el (mh-compose-and-send-mail): Call
`mh-decode-message-subject' on (reply or forward) message drafts.
2010-05-07 Chong Yidong <cyd@stupidchicken.com>
* Version 23.2 released.
......
......@@ -905,6 +905,9 @@ letter."
(mh-identity-make-menu)
(mh-identity-add-menu)
;; Cleanup possibly RFC2047 encoded subject header
(mh-decode-message-subject)
;; Insert extra fields.
(mh-insert-x-mailer)
(mh-insert-x-face)
......
......@@ -507,6 +507,15 @@ decoding the same message multiple times."
(let ((buffer-read-only nil))
(rfc2047-decode-region (point-min) (mh-mail-header-end)))))
;;;###mh-autoload
(defun mh-decode-message-subject ()
"Decode RFC2047 encoded message header fields."
(when mh-decode-mime-flag
(save-excursion
(let ((buffer-read-only nil))
(rfc2047-decode-region (progn (mh-goto-header-field "subject:") (point))
(progn (mh-header-field-end) (point)))))))
;;;###mh-autoload
(defun mh-mime-display (&optional pre-dissected-handles)
"Display (and possibly decode) MIME handles.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment