aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-09-24 03:15:27 +0000
committerGlenn Morris2009-09-24 03:15:27 +0000
commitffa1fed64f67aceb345e83b53ffa3700008a0826 (patch)
tree3d0eafff093758c4009facda12e8c3f2b4c2e70e
parent075518b529153bbd7d169d4aa9b6b127ec2d8682 (diff)
downloademacs-ffa1fed64f67aceb345e83b53ffa3700008a0826.tar.gz
emacs-ffa1fed64f67aceb345e83b53ffa3700008a0826.zip
(rmail-mime-multipart-handler): Accept the case where
there is no newline after the final mime boundary. (Bug#4539) Move markers on insertion so that any buttons inserted don't end up in the next part of a multipart message.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/mail/rmailmm.el4
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d41c8f2d0ac..26342e5697c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12009-09-24 Glenn Morris <rgm@gnu.org>
2
3 * mail/rmailmm.el (rmail-mime-multipart-handler): Accept the case where
4 there is no newline after the final mime boundary. (Bug#4539)
5 Move markers on insertion so that any buttons inserted don't end up in
6 the next part of a multipart message.
7
12009-09-24 Stefan Monnier <monnier@iro.umontreal.ca> 82009-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * minibuffer.el (minibuffer-force-complete): Cycle the list, rather 10 * minibuffer.el (minibuffer-force-complete): Cycle the list, rather
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el
index 5cb0d24f459..0cf22de5214 100644
--- a/lisp/mail/rmailmm.el
+++ b/lisp/mail/rmailmm.el
@@ -213,10 +213,10 @@ format."
213 ;; If this is the last boundary according to RFC 2046, hide the 213 ;; If this is the last boundary according to RFC 2046, hide the
214 ;; epilogue, else hide the boundary only. Use a marker for 214 ;; epilogue, else hide the boundary only. Use a marker for
215 ;; `next' because `rmail-mime-show' may change the buffer. 215 ;; `next' because `rmail-mime-show' may change the buffer.
216 (cond ((looking-at "--[ \t]*\n") 216 (cond ((looking-at "--[ \t]*$")
217 (setq next (point-max-marker))) 217 (setq next (point-max-marker)))
218 ((looking-at "[ \t]*\n") 218 ((looking-at "[ \t]*\n")
219 (setq next (copy-marker (match-end 0)))) 219 (setq next (copy-marker (match-end 0) t)))
220 (t 220 (t
221 (rmail-mm-get-boundary-error-message 221 (rmail-mm-get-boundary-error-message
222 "Malformed boundary" content-type content-disposition 222 "Malformed boundary" content-type content-disposition