aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorGlenn Morris2011-02-19 11:40:59 -0800
committerGlenn Morris2011-02-19 11:40:59 -0800
commit67ab0163d67fbfeb41c37c8a259f27eeef965520 (patch)
tree0baa678a486744cc30719841ab745fe690f5bc9d /lisp/mail
parentd6e96966e86d8eadec446788d19144bd69b1e798 (diff)
parent27ac6e7908c1d7b503ac5dca42a34ab9068d0864 (diff)
downloademacs-67ab0163d67fbfeb41c37c8a259f27eeef965520.tar.gz
emacs-67ab0163d67fbfeb41c37c8a259f27eeef965520.zip
Merge from emacs-23; up to 2010-06-01T01:49:15Z!monnier@iro.umontreal.ca
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmail.el2
-rw-r--r--lisp/mail/rmailmm.el16
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 07f6920a128..4c8c8214195 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -4306,7 +4306,7 @@ With prefix argument N moves forward N messages with these labels.
4306 4306
4307;;;*** 4307;;;***
4308 4308
4309;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "3e235bdf4c2e54da06abcdd72e7f7649") 4309;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "9c0902449733cabd5c7e7d17092a7c69")
4310;;; Generated autoloads from rmailmm.el 4310;;; Generated autoloads from rmailmm.el
4311 4311
4312(autoload 'rmail-mime "rmailmm" "\ 4312(autoload 'rmail-mime "rmailmm" "\
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el
index 127fd8ac350..0bfeb121ca4 100644
--- a/lisp/mail/rmailmm.el
+++ b/lisp/mail/rmailmm.el
@@ -472,10 +472,11 @@ See `rmail-mime-entity' for the detail."
472HEADER is a header component of a MIME-entity object (see 472HEADER is a header component of a MIME-entity object (see
473`rmail-mime-entity')." 473`rmail-mime-entity')."
474 (with-temp-buffer 474 (with-temp-buffer
475 (let ((last-coding-system-used nil)) 475 (let ((buf (current-buffer)))
476 (with-current-buffer rmail-mime-mbox-buffer 476 (with-current-buffer rmail-mime-mbox-buffer
477 (let ((rmail-buffer rmail-mime-mbox-buffer) 477 (let ((last-coding-system-used nil)
478 (rmail-view-buffer rmail-mime-view-buffer)) 478 (rmail-buffer rmail-mime-mbox-buffer)
479 (rmail-view-buffer buf))
479 (save-excursion 480 (save-excursion
480 (goto-char (aref header 0)) 481 (goto-char (aref header 0))
481 (rmail-copy-headers (point) (aref header 1))))) 482 (rmail-copy-headers (point) (aref header 1)))))
@@ -514,7 +515,9 @@ HEADER is a header component of a MIME-entity object (see
514 ((string= transfer-encoding "quoted-printable") 515 ((string= transfer-encoding "quoted-printable")
515 (quoted-printable-decode-region pos (point)))))) 516 (quoted-printable-decode-region pos (point))))))
516 (decode-coding-region pos (point) coding-system) 517 (decode-coding-region pos (point) coding-system)
517 (if (or (not rmail-mime-coding-system) (consp rmail-mime-coding-system)) 518 (if (and
519 (or (not rmail-mime-coding-system) (consp rmail-mime-coding-system))
520 (not (eq (coding-system-base coding-system) 'us-ascii)))
518 (setq rmail-mime-coding-system coding-system)) 521 (setq rmail-mime-coding-system coding-system))
519 (or (bolp) (insert "\n")))) 522 (or (bolp) (insert "\n"))))
520 523
@@ -1302,7 +1305,10 @@ attachments as specfied by `rmail-mime-attachment-dirs-alist'."
1302 (rmail-mime-find-header-encoding 1305 (rmail-mime-find-header-encoding
1303 (rmail-mime-entity-header entity))))) 1306 (rmail-mime-entity-header entity)))))
1304 (set-buffer-file-coding-system 1307 (set-buffer-file-coding-system
1305 (coding-system-base rmail-mime-coding-system) t t)) 1308 (if rmail-mime-coding-system
1309 (coding-system-base rmail-mime-coding-system)
1310 'undecided)
1311 t t))
1306 ;; Decoding failed. ENTITY is an error message. Insert the 1312 ;; Decoding failed. ENTITY is an error message. Insert the
1307 ;; original message body as is, and show warning. 1313 ;; original message body as is, and show warning.
1308 (let ((region (with-current-buffer rmail-mime-mbox-buffer 1314 (let ((region (with-current-buffer rmail-mime-mbox-buffer