aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2006-01-20 03:44:29 +0000
committerMiles Bader2006-01-20 03:44:29 +0000
commite499bc94d642380257a49eeaf8049f9a8039a9a7 (patch)
tree5d89d95f94467187fae465a99cbff56c73c75dde
parentd322eb9b19ddba8ef604dd9d3e096be16a70fafe (diff)
downloademacs-e499bc94d642380257a49eeaf8049f9a8039a9a7.tar.gz
emacs-e499bc94d642380257a49eeaf8049f9a8039a9a7.zip
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-5
Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (base, patch 1-3) - tag of miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-187 - Update from CVS - Merge from emacs--devo--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10 (patch 187) - Update from CVS
-rw-r--r--lisp/gnus/ChangeLog14
-rw-r--r--lisp/gnus/mm-bodies.el8
-rw-r--r--lisp/gnus/mm-decode.el10
-rw-r--r--lisp/gnus/mm-uu.el8
4 files changed, 31 insertions, 9 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7ad94aee8f0..fb99c71c9c8 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -5,6 +5,20 @@
5 Revert 2006-01-08 change because the functions will be used in No 5 Revert 2006-01-08 change because the functions will be used in No
6 Gnus. 6 Gnus.
7 7
82006-01-19 Katsumi Yamaoka <yamaoka@jpl.org>
9
10 * mm-bodies.el (mm-decode-body): Don't decode decoded body.
11
12 * mm-uu.el (mm-uu-dissect-text-parts): Dissect dissected parts.
13
142006-01-17 Katsumi Yamaoka <yamaoka@jpl.org>
15
16 * mm-decode.el (mm-inlined-types): Add application/pgp.
17 (mm-automatic-display): Ditto.
18
19 * mm-uu.el (mm-uu-dissect-text-parts): Recognize application/pgp
20 part as text.
21
82006-01-16 Katsumi Yamaoka <yamaoka@jpl.org> 222006-01-16 Katsumi Yamaoka <yamaoka@jpl.org>
9 23
10 * nnrss.el: Update copyright. 24 * nnrss.el: Update copyright.
diff --git a/lisp/gnus/mm-bodies.el b/lisp/gnus/mm-bodies.el
index 8b47989e563..c58eb6bd41d 100644
--- a/lisp/gnus/mm-bodies.el
+++ b/lisp/gnus/mm-bodies.el
@@ -1,7 +1,7 @@
1;;; mm-bodies.el --- Functions for decoding MIME things 1;;; mm-bodies.el --- Functions for decoding MIME things
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; MORIOKA Tomohiko <morioka@jaist.ac.jp> 7;; MORIOKA Tomohiko <morioka@jaist.ac.jp>
@@ -249,7 +249,8 @@ decoding. If it is nil, default to `mail-parse-charset'."
249 (save-excursion 249 (save-excursion
250 (when encoding 250 (when encoding
251 (mm-decode-content-transfer-encoding encoding type)) 251 (mm-decode-content-transfer-encoding encoding type))
252 (when (featurep 'mule) ; Fixme: Wrong test for unibyte session. 252 (when (and (featurep 'mule) ;; Fixme: Wrong test for unibyte session.
253 (not (eq charset 'gnus-decoded)))
253 (let ((coding-system (mm-charset-to-coding-system charset))) 254 (let ((coding-system (mm-charset-to-coding-system charset)))
254 (if (and (not coding-system) 255 (if (and (not coding-system)
255 (listp mail-parse-ignored-charsets) 256 (listp mail-parse-ignored-charsets)
@@ -262,8 +263,7 @@ decoding. If it is nil, default to `mail-parse-charset'."
262 ;;in XEmacs 263 ;;in XEmacs
263 (mm-multibyte-p) 264 (mm-multibyte-p)
264 (or (not (eq coding-system 'ascii)) 265 (or (not (eq coding-system 'ascii))
265 (setq coding-system mail-parse-charset)) 266 (setq coding-system mail-parse-charset)))
266 (not (eq coding-system 'gnus-decoded)))
267 (mm-decode-coding-region (point-min) (point-max) 267 (mm-decode-coding-region (point-min) (point-max)
268 coding-system)) 268 coding-system))
269 (setq buffer-file-coding-system 269 (setq buffer-file-coding-system
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 5b55af4d756..b275807c051 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -1,7 +1,7 @@
1;;; mm-decode.el --- Functions for decoding MIME things 1;;; mm-decode.el --- Functions for decoding MIME things
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; MORIOKA Tomohiko <morioka@jaist.ac.jp> 7;; MORIOKA Tomohiko <morioka@jaist.ac.jp>
@@ -279,7 +279,9 @@ before the external MIME handler is invoked."
279 "application/x-emacs-lisp" 279 "application/x-emacs-lisp"
280 "application/pgp-signature" "application/x-pkcs7-signature" 280 "application/pgp-signature" "application/x-pkcs7-signature"
281 "application/pkcs7-signature" "application/x-pkcs7-mime" 281 "application/pkcs7-signature" "application/x-pkcs7-mime"
282 "application/pkcs7-mime") 282 "application/pkcs7-mime"
283 ;; Mutt still uses this even though it has already been withdrawn.
284 "application/pgp")
283 "List of media types that are to be displayed inline. 285 "List of media types that are to be displayed inline.
284See also `mm-inline-media-tests', which says how to display a media 286See also `mm-inline-media-tests', which says how to display a media
285type inline." 287type inline."
@@ -302,7 +304,9 @@ when selecting a different article."
302 "application/emacs-lisp" "application/x-emacs-lisp" 304 "application/emacs-lisp" "application/x-emacs-lisp"
303 "application/x-pkcs7-signature" 305 "application/x-pkcs7-signature"
304 "application/pkcs7-signature" "application/x-pkcs7-mime" 306 "application/pkcs7-signature" "application/x-pkcs7-mime"
305 "application/pkcs7-mime") 307 "application/pkcs7-mime"
308 ;; Mutt still uses this even though it has already been withdrawn.
309 "application/pgp")
306 "A list of MIME types to be displayed automatically." 310 "A list of MIME types to be displayed automatically."
307 :type '(repeat regexp) 311 :type '(repeat regexp)
308 :group 'mime-display) 312 :group 'mime-display)
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el
index 312c3dd8542..2bebede4bfc 100644
--- a/lisp/gnus/mm-uu.el
+++ b/lisp/gnus/mm-uu.el
@@ -512,6 +512,7 @@ value of `mm-uu-text-plain-type'."
512(defun mm-uu-dissect-text-parts (handle) 512(defun mm-uu-dissect-text-parts (handle)
513 "Dissect text parts and put uu handles into HANDLE." 513 "Dissect text parts and put uu handles into HANDLE."
514 (let ((buffer (mm-handle-buffer handle)) 514 (let ((buffer (mm-handle-buffer handle))
515 (case-fold-search t)
515 type children) 516 type children)
516 (cond ((stringp buffer) 517 (cond ((stringp buffer)
517 (dolist (elem (cdr handle)) 518 (dolist (elem (cdr handle))
@@ -519,13 +520,16 @@ value of `mm-uu-text-plain-type'."
519 ((bufferp buffer) 520 ((bufferp buffer)
520 (when (and (setq type (mm-handle-media-type handle)) 521 (when (and (setq type (mm-handle-media-type handle))
521 (stringp type) 522 (stringp type)
522 (string-match "\\`text/" type) 523 ;; Mutt still uses application/pgp even though
524 ;; it has already been withdrawn.
525 (string-match "\\`text/\\|\\`application/pgp\\'" type)
523 (with-current-buffer buffer 526 (with-current-buffer buffer
524 (setq children 527 (setq children
525 (mm-uu-dissect t (mm-handle-type handle))))) 528 (mm-uu-dissect t (mm-handle-type handle)))))
526 (kill-buffer buffer) 529 (kill-buffer buffer)
527 (setcar handle (car children)) 530 (setcar handle (car children))
528 (setcdr handle (cdr children)))) 531 (setcdr handle (cdr children))
532 (mm-uu-dissect-text-parts handle)))
529 (t 533 (t
530 (dolist (elem handle) 534 (dolist (elem handle)
531 (mm-uu-dissect-text-parts elem)))))) 535 (mm-uu-dissect-text-parts elem))))))