+2007-08-23 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mml.el (mml-generate-mime): Make sure it uses multibyte temp buffer.
+ (mml-generate-mime-1): Don't encode body if it is specified to be in
+ raw form; don't make buffer be unibyte when inserting multibyte string.
+
2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
* sha1.el: Fix up comment style.
(mml-multipart-number mml-multipart-number))
(if (not cont)
nil
- (with-temp-buffer
+ (mm-with-multibyte-buffer
(if (and (consp (car cont))
(= (length cont) 1))
(mml-generate-mime-1 (car cont))
(progn
(mm-enable-multibyte)
(insert contents)
- (setq charset (mm-encode-body)))
+ (unless raw
+ (setq charset (mm-encode-body))))
(insert contents)))))
(setq encoding (mm-encode-buffer type)
coded (mm-string-as-multibyte (buffer-string))))
(mml-insert-mime-headers cont type charset encoding nil)
- (insert "\n")
- (mm-with-unibyte-current-buffer
- (insert coded)))))
+ (insert "\n" coded))))
((eq (car cont) 'external)
(insert "Content-Type: message/external-body")
(let ((parameters (mml-parameter-string
+2007-08-24 IRIE Tetsuya <irie@t.email.ne.jp> (tiny change)
+
+ * message.texi (MIME): Replace mml-attach with mml-attach-file.
+
2007-08-27 Richard Stallman <rms@gnu.org>
* emacs.texi (Top): Clarify menu item for Glossary.
automatically add the @code{Content-Type} and
@code{Content-Transfer-Encoding} headers.
-@findex mml-attach
+@findex mml-attach-file
@kindex C-c C-a
The most typical thing users want to use the multipart things in
@acronym{MIME} for is to add ``attachments'' to mail they send out.
-This can be done with the @kbd{C-c C-a} command (@kbd{M-x mml-attach}),
+This can be done with the @kbd{C-c C-a} command (@kbd{M-x mml-attach-file}),
which will prompt for a file name and a @acronym{MIME} type.
@vindex mml-dnd-protocol-alist