+2003-11-03 Eli Zaretskii <eliz@elta.co.il>
+
+ * mail/rmail.el (rmail-convert-to-babyl-format): If
+ base64-decode-region signals an error, catch it and silently
+ ignore it.
+
2003-11-01 Mark A. Hershberger <mah@everybody.org>
* xml.el: Allow comments following the top-level element.
(delete-region (point) (search-backward ":"))
(insert ": 8bit")))
(if base64-header-field-end
- (save-excursion
- (base64-decode-region (1+ header-end)
- (- (point) 2))
- ;; Change "base64" to "8bit", to reflect the
- ;; decoding we just did.
- (goto-char (1+ header-end))
- (while (search-forward "\r\n" (point-max) t)
- (replace-match "\n"))
- (goto-char base64-header-field-end)
- (delete-region (point) (search-backward ":"))
- (insert ": 8bit")))
+ (condition-case nil
+ (save-excursion
+ (base64-decode-region (1+ header-end)
+ (- (point) 2))
+ ;; Change "base64" to "8bit", to reflect the
+ ;; decoding we just did.
+ (goto-char (1+ header-end))
+ (while (search-forward "\r\n" (point-max) t)
+ (replace-match "\n"))
+ (goto-char base64-header-field-end)
+ (delete-region (point) (search-backward ":"))
+ (insert ": 8bit"))
+ (error nil)))
(setq last-coding-system-used nil)
(or rmail-enable-mime
(not rmail-enable-multibyte)
(delete-region (point) (search-backward ":"))
(insert ": 8bit")))
(if base64-header-field-end
- (save-excursion
- (base64-decode-region header-end (point))
- ;; Change "base64" to "8bit", to reflect the
- ;; decoding we just did.
- (goto-char base64-header-field-end)
- (delete-region (point) (search-backward ":"))
- (insert ": 8bit"))))
+ (condition-case nil
+ (save-excursion
+ (base64-decode-region header-end (point))
+ ;; Change "base64" to "8bit", to reflect the
+ ;; decoding we just did.
+ (goto-char base64-header-field-end)
+ (delete-region (point) (search-backward ":"))
+ (insert ": 8bit"))
+ (error nil))))
(save-excursion
(save-restriction