From: Katsumi Yamaoka Date: Fri, 20 May 2011 00:03:51 +0000 (+0000) Subject: mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading whitespace in base6... X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~237^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cfe397c6d2123c82a12bbed1f26a45d0ddfc781f;p=emacs.git mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading whitespace in base64 data lines. --- 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))