aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-12-04 22:49:10 +0000
committerChong Yidong2008-12-04 22:49:10 +0000
commit0efcb0dc64b1b7b85a97eebdb023d8dd8ee913d0 (patch)
treee286f8dae480b12d1a63292e7863c341a1b224ba
parent76cc2f62c07161c4b97a0becae3e9f05217a2cce (diff)
downloademacs-0efcb0dc64b1b7b85a97eebdb023d8dd8ee913d0.tar.gz
emacs-0efcb0dc64b1b7b85a97eebdb023d8dd8ee913d0.zip
Require mail-parse.
(pmail-mime-show): Don't use removed function pmail-header-hide-headers. (pmail-mime): Use pmail-msgbeg and pmail-msgend instead of removed pmail-desc-* functions.
-rw-r--r--lisp/mail/pmailmm.el16
1 files changed, 6 insertions, 10 deletions
diff --git a/lisp/mail/pmailmm.el b/lisp/mail/pmailmm.el
index ec6296fd8d2..feb7997585e 100644
--- a/lisp/mail/pmailmm.el
+++ b/lisp/mail/pmailmm.el
@@ -37,8 +37,8 @@
37 37
38;;; Code: 38;;; Code:
39 39
40;; For ...
41(require 'pmail) 40(require 'pmail)
41(require 'mail-parse)
42 42
43;;; Variables 43;;; Variables
44 44
@@ -333,9 +333,7 @@ modified."
333 content-transfer-encoding 333 content-transfer-encoding
334 content-disposition) 334 content-disposition)
335 ;; `point-min' returns the beginning and `end' points at the end 335 ;; `point-min' returns the beginning and `end' points at the end
336 ;; of the headers. We're not using `pmail-header-get-header' 336 ;; of the headers.
337 ;; because we must be able to handle the case of no headers
338 ;; existing in a part. In this case end is at point-min.
339 (goto-char (point-min)) 337 (goto-char (point-min))
340 ;; If we're showing a part without headers, then it will start 338 ;; If we're showing a part without headers, then it will start
341 ;; with a newline. 339 ;; with a newline.
@@ -372,11 +370,8 @@ modified."
372 ;; Hide headers and handle the part. 370 ;; Hide headers and handle the part.
373 (save-restriction 371 (save-restriction
374 (cond ((string= (car content-type) "message/rfc822") 372 (cond ((string= (car content-type) "message/rfc822")
375 (pmail-header-hide-headers)
376 (narrow-to-region end (point-max))) 373 (narrow-to-region end (point-max)))
377 (show-headers 374 ((not show-headers)
378 (pmail-header-hide-headers))
379 (t
380 (delete-region (point-min) end))) 375 (delete-region (point-min) end)))
381 (pmail-mime-handle content-type content-disposition 376 (pmail-mime-handle content-type content-disposition
382 content-transfer-encoding)))) 377 content-transfer-encoding))))
@@ -385,12 +380,13 @@ modified."
385 "Copy buffer contents to a temporary buffer and handle MIME. 380 "Copy buffer contents to a temporary buffer and handle MIME.
386This calls `pmail-mime-show' to do the real job." 381This calls `pmail-mime-show' to do the real job."
387 (interactive) 382 (interactive)
383 (pmail-swap-buffers-maybe)
388 (let ((data (with-current-buffer pmail-buffer 384 (let ((data (with-current-buffer pmail-buffer
389 (save-restriction 385 (save-restriction
390 (widen) 386 (widen)
391 (buffer-substring 387 (buffer-substring
392 (pmail-desc-get-start pmail-current-message) 388 (pmail-msgbeg pmail-current-message)
393 (pmail-desc-get-end pmail-current-message))))) 389 (pmail-msgend pmail-current-message)))))
394 (buf (get-buffer-create "*PMAIL*"))) 390 (buf (get-buffer-create "*PMAIL*")))
395 (set-buffer buf) 391 (set-buffer buf)
396 (let ((inhibit-read-only t)) 392 (let ((inhibit-read-only t))