changeset 53449:5100c8a09d67

(rmail-convert-to-babyl-format): Fix off-by-one error in arguments to base64-decode-region. Remove ^M characters after decoding base64.
author Eli Zaretskii <eliz@is.elta.co.il>
date Tue, 30 Dec 2003 11:42:37 +0000
parents 125ebe493abe
children 20dec060296e
files lisp/mail/rmail.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Tue Dec 30 10:59:36 2003 +0000
+++ b/lisp/mail/rmail.el	Tue Dec 30 11:42:37 2003 +0000
@@ -1836,9 +1836,12 @@
 		       (when
 			   (condition-case nil
 			       (progn
-				 (base64-decode-region header-end (point))
+				 (base64-decode-region (1+ header-end) (point))
 				 t)
 			     (error nil))
+			 (goto-char header-end)
+			 (while (search-forward "\r\n" (point-max) t)
+			   (replace-match "\n"))
 			 ;; Change "base64" to "8bit", to reflect the
 			 ;; decoding we just did.
 			 (goto-char base64-header-field-end)