aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2011-07-06 12:48:37 -0400
committerRichard M. Stallman2011-07-06 12:48:37 -0400
commita9a936b98858c8f2a88ec24f5ef0216299c1fec8 (patch)
treee521bc137007abb288fa878509cf1dc0d804216d
parentf4f7319875f9502424804f56e2a12cd620b51c12 (diff)
downloademacs-a9a936b98858c8f2a88ec24f5ef0216299c1fec8.tar.gz
emacs-a9a936b98858c8f2a88ec24f5ef0216299c1fec8.zip
Fix rmail mime search bug when entity is a string.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/mail/rmailmm.el2
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a2b389f4fe4..6625790370e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -8,6 +8,9 @@
8 (rmail-mime-toggle-hidden): Likewise, for showing. 8 (rmail-mime-toggle-hidden): Likewise, for showing.
9 (rmail-mime-process-multipart): Record when an entity is truncated. 9 (rmail-mime-process-multipart): Record when an entity is truncated.
10 10
11 * mail/rmailmm.el (rmail-search-mime-message): Don't get confused
12 if ENTITY is a string.
13
112011-07-06 Lars Magne Ingebrigtsen <larsi@gnus.org> 142011-07-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
12 15
13 * emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation 16 * emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el
index 5b8405dc499..6f1bce03ee9 100644
--- a/lisp/mail/rmailmm.el
+++ b/lisp/mail/rmailmm.el
@@ -1408,6 +1408,8 @@ This is the usual value of `rmail-insert-mime-forwarded-message-function'."
1408 (re-search-forward regexp nil t)) 1408 (re-search-forward regexp nil t))
1409 ;; Next, search the body. 1409 ;; Next, search the body.
1410 (if (and entity 1410 (if (and entity
1411 ;; RMS: I am not sure why, but sometimes this is a string.
1412 (not (stringp entity))
1411 (let* ((content-type (rmail-mime-entity-type entity)) 1413 (let* ((content-type (rmail-mime-entity-type entity))
1412 (charset (cdr (assq 'charset (cdr content-type))))) 1414 (charset (cdr (assq 'charset (cdr content-type)))))
1413 (or (not (string-match "text/.*" (car content-type))) 1415 (or (not (string-match "text/.*" (car content-type)))