diff options
| author | Katsumi Yamaoka | 2010-05-06 03:27:20 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-05-06 03:27:20 +0000 |
| commit | ee3097571bee7fe6ee0abd6815e92a04122e09f8 (patch) | |
| tree | fa60e4cec87b25d200251317905598569cf0fa19 | |
| parent | 1493963bb19856c8fffedc1e3091bf1fa61bdf64 (diff) | |
| download | emacs-ee3097571bee7fe6ee0abd6815e92a04122e09f8.tar.gz emacs-ee3097571bee7fe6ee0abd6815e92a04122e09f8.zip | |
Synch with Gnus trunk.
(mml-generate-mime-1,mml-compute-boundary-1): Update 'mml
handles on recursive mml-to-mime translation and check them for
boundary delimiter collisions. Reported by: Greg Troxel.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/mml.el | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index bb6d11c81bd..69f3c003786 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -21,6 +21,12 @@ | |||
| 21 | * gnus-dired.el (gnus-dired-mode-map): Initialize in declaration. | 21 | * gnus-dired.el (gnus-dired-mode-map): Initialize in declaration. |
| 22 | (gnus-dired-mode): Use define-minor-mode. | 22 | (gnus-dired-mode): Use define-minor-mode. |
| 23 | 23 | ||
| 24 | 2010-05-01 Andreas Seltenreich <seltenreich@gmx.de> | ||
| 25 | |||
| 26 | * mml.el (mml-generate-mime-1,mml-compute-boundary-1): Update 'mml | ||
| 27 | handles on recursive mml-to-mime translation and check them for | ||
| 28 | boundary delimiter collisions. Reported by: Greg Troxel. | ||
| 29 | |||
| 24 | 2010-04-27 Katsumi Yamaoka <yamaoka@jpl.org> | 30 | 2010-04-27 Katsumi Yamaoka <yamaoka@jpl.org> |
| 25 | 31 | ||
| 26 | * gnus-util.el: Don't load tm and apel XEmacs packages when compiling. | 32 | * gnus-util.el: Don't load tm and apel XEmacs packages when compiling. |
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index a5670e3c8b6..f55b2ccae92 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -520,7 +520,10 @@ If MML is non-nil, return the buffer up till the correspondent mml tag." | |||
| 520 | ;; `m-g-d-t' will be bound to "message/rfc822" | 520 | ;; `m-g-d-t' will be bound to "message/rfc822" |
| 521 | ;; when encoding an article to be forwarded. | 521 | ;; when encoding an article to be forwarded. |
| 522 | (mml-generate-default-type "text/plain")) | 522 | (mml-generate-default-type "text/plain")) |
| 523 | (mml-to-mime)) | 523 | (mml-to-mime) |
| 524 | ;; Update handle so mml-compute-boundary can | ||
| 525 | ;; detect collisions with the nested parts. | ||
| 526 | (setcdr (assoc 'contents cont) (buffer-string))) | ||
| 524 | (let ((mm-7bit-chars (concat mm-7bit-chars "\x1b"))) | 527 | (let ((mm-7bit-chars (concat mm-7bit-chars "\x1b"))) |
| 525 | ;; ignore 0x1b, it is part of iso-2022-jp | 528 | ;; ignore 0x1b, it is part of iso-2022-jp |
| 526 | (setq encoding (mm-body-7-or-8)))) | 529 | (setq encoding (mm-body-7-or-8)))) |
| @@ -699,7 +702,7 @@ If MML is non-nil, return the buffer up till the correspondent mml tag." | |||
| 699 | (defun mml-compute-boundary-1 (cont) | 702 | (defun mml-compute-boundary-1 (cont) |
| 700 | (let (filename) | 703 | (let (filename) |
| 701 | (cond | 704 | (cond |
| 702 | ((eq (car cont) 'part) | 705 | ((member (car cont) '(part mml)) |
| 703 | (with-temp-buffer | 706 | (with-temp-buffer |
| 704 | (cond | 707 | (cond |
| 705 | ((cdr (assq 'buffer cont)) | 708 | ((cdr (assq 'buffer cont)) |