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.
+2009-09-24 Glenn Morris <rgm@gnu.org>
+
+ * mail/rmailmm.el (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.
+
2009-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
* minibuffer.el (minibuffer-force-complete): Cycle the list, rather
;; If this is the last boundary according to RFC 2046, hide the
;; epilogue, else hide the boundary only. Use a marker for
;; `next' because `rmail-mime-show' may change the buffer.
- (cond ((looking-at "--[ \t]*\n")
+ (cond ((looking-at "--[ \t]*$")
(setq next (point-max-marker)))
((looking-at "[ \t]*\n")
- (setq next (copy-marker (match-end 0))))
+ (setq next (copy-marker (match-end 0) t)))
(t
(rmail-mm-get-boundary-error-message
"Malformed boundary" content-type content-disposition