From cfe397c6d2123c82a12bbed1f26a45d0ddfc781f Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Fri, 20 May 2011 00:03:51 +0000 Subject: [PATCH] mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading whitespace in base64 data lines. --- lisp/gnus/ChangeLog | 5 +++++ lisp/gnus/mm-bodies.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 66f30f03eff..2b51637e3d1 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2011-05-19 Katsumi Yamaoka + + * mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading + whitespace in base64 data lines. + 2011-05-18 Teodor Zlatanov * gnus-registry.el (gnus-registry-user-format-function-M): diff --git a/lisp/gnus/mm-bodies.el b/lisp/gnus/mm-bodies.el index 9952f410f0d..695451ddc45 100644 --- a/lisp/gnus/mm-bodies.el +++ b/lisp/gnus/mm-bodies.el @@ -197,7 +197,8 @@ If TYPE is `text/plain' CRLF->LF translation may occur." (while (re-search-forward "^[\t ]*\r?\n" nil t) (delete-region (match-beginning 0) (match-end 0))) (goto-char (point-max)) - (when (re-search-backward "^[A-Za-z0-9+/]+=*[\t ]*$" nil t) + (when (re-search-backward "^[\t ]*[A-Za-z0-9+/]+=*[\t ]*$" + nil t) (forward-line)) (point)))) ((memq encoding '(nil 7bit 8bit binary)) -- 2.39.2