mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading whitespace in base6...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 19 May 2011 23:58:51 +0000 (23:58 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 19 May 2011 23:58:51 +0000 (23:58 +0000)
lisp/ChangeLog
lisp/mm-bodies.el

index ef5250d..61bfa87 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-19  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading
+       whitespace in base64 data lines.
+
 2011-05-18  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-registry.el (gnus-registry-user-format-function-M):
index 9952f41..695451d 100644 (file)
@@ -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))