aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2011-12-31 12:06:21 +0200
committerEli Zaretskii2011-12-31 12:06:21 +0200
commit8d43f3cd8a2585eef72bedd0061dd8c1d66ae17c (patch)
tree547067b208882c2eee436f9f12777d798cb69219
parent4baa020dd90f2925db503a92a0ab71cc49ddc89a (diff)
downloademacs-8d43f3cd8a2585eef72bedd0061dd8c1d66ae17c.tar.gz
emacs-8d43f3cd8a2585eef72bedd0061dd8c1d66ae17c.zip
Decode message headers of non-MIME messages in Rmail.
lisp/mail/rmail.el (rmail-show-message-1): Decode any RFC2047 encoded headers of non-MIME messages, when rmail-enable-mime is non-nil.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/rmail.el10
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 37286d0780c..401f1f4f540 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-12-31 Eli Zaretskii <eliz@gnu.org>
2
3 * mail/rmail.el (rmail-show-message-1): Decode any RFC2047 encoded
4 headers of non-MIME messages, when rmail-enable-mime is non-nil.
5
12011-12-29 Michael Albinus <michael.albinus@gmx.de> 62011-12-29 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * net/tramp-sh.el (tramp-find-shell): Set "remote-shell" property 8 * net/tramp-sh.el (tramp-find-shell): Set "remote-shell" property
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 1ea01bdadb8..2c94cfdf212 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2773,7 +2773,15 @@ The current mail message becomes the message displayed."
2773 (forward-line)) 2773 (forward-line))
2774 (goto-char (point-min))) 2774 (goto-char (point-min)))
2775 ;; Copy the headers to the front of the message view buffer. 2775 ;; Copy the headers to the front of the message view buffer.
2776 (rmail-copy-headers beg end)) 2776 (rmail-copy-headers beg end)
2777 ;; Decode any RFC2047 encoded message headers.
2778 (if rmail-enable-mime
2779 (with-current-buffer rmail-view-buffer
2780 (rfc2047-decode-region
2781 (point-min)
2782 (progn
2783 (search-forward "\n\n" nil 'move)
2784 (point))))))
2777 ;; highlight the message, activate any URL like text and add 2785 ;; highlight the message, activate any URL like text and add
2778 ;; special highlighting for and quoted material. 2786 ;; special highlighting for and quoted material.
2779 (with-current-buffer rmail-view-buffer 2787 (with-current-buffer rmail-view-buffer