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

Decode RFC2047 encoded Subject lines for mail replies.

parent ead6f8f5
2010-05-14 Peter S Galbraith <>
* 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 <>
* Version 23.2 released.
......@@ -905,6 +905,9 @@ letter."
;; Cleanup possibly RFC2047 encoded subject header
;; Insert extra fields.
......@@ -507,6 +507,15 @@ decoding the same message multiple times."
(let ((buffer-read-only nil))
(rfc2047-decode-region (point-min) (mh-mail-header-end)))))
(defun mh-decode-message-subject ()
"Decode RFC2047 encoded message header fields."
(when mh-decode-mime-flag
(let ((buffer-read-only nil))
(rfc2047-decode-region (progn (mh-goto-header-field "subject:") (point))
(progn (mh-header-field-end) (point)))))))
(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