Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b59ee24d
Commit
b59ee24d
authored
May 19, 2010
by
Peter S Galbraith
Browse files
Decode RFC2047 encoded Subject lines for mail replies.
parent
ead6f8f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
lisp/mh-e/ChangeLog
lisp/mh-e/ChangeLog
+7
-0
lisp/mh-e/mh-comp.el
lisp/mh-e/mh-comp.el
+3
-0
lisp/mh-e/mh-mime.el
lisp/mh-e/mh-mime.el
+9
-0
No files found.
lisp/mh-e/ChangeLog
View file @
b59ee24d
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.
...
...
lisp/mh-e/mh-comp.el
View file @
b59ee24d
...
...
@@ -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
)
...
...
lisp/mh-e/mh-mime.el
View file @
b59ee24d
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment