GNU bug report logs -
#7165
24.0.50; rmail error "Invalid base64 data"
Previous Next
Reported by: Kenichi Handa <handa <at> m17n.org>
Date: Wed, 6 Oct 2010 07:24:02 UTC
Severity: normal
Tags: patch
Found in version 24.0.50
Done: Kenichi Handa <handa <at> m17n.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#7165: 24.0.50; rmail error "Invalid base64 data"
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 7165 <at> debbugs.gnu.org.
--
7165: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7165
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
In article <1c62xcgo8l.fsf <at> fencepost.gnu.org>, Glenn Morris <rgm <at> gnu.org> writes:
> Kenichi Handa wrote:
> > I suggest this patch (to emacs-23).
> If you are looking for feedback, this looks good to me.
Thank you for verifying it. I've just committed it to emacs-23.
> > === modified file 'lisp/mail/rmail.el'
> > --- lisp/mail/rmail.el 2010-08-20 07:11:35 +0000
> > +++ lisp/mail/rmail.el 2010-10-06 07:22:53 +0000
> > @@ -2742,7 +2742,9 @@
> > nil t 'unibyte)
> > (message "Malformed MIME quoted-printable message")))
> > ((and (string= character-coding "base64") is-text-message)
> > - (base64-decode-region (point-min) (point-max)))
> > + (condition-case err
> > + (base64-decode-region (point-min) (point-max))
> > + (error (message "%s" (cdr err)))))
> > ((eq character-coding 'uuencode)
> > (error "uuencoded messages are not supported yet"))
> > (t))
---
Kenichi Handa
handa <at> m17n.org
[Message part 3 (message/rfc822, inline)]
While reading mails by rmail, I encountered "Invalid base64
data" error, and couldn't delete the message causing that
error.
This bug is very similar to bug#5441. But unlike
mail-unquote-printable-region, base64-decode-region doesn't
have NOERROR arg and we have to use condition-case. I
suggest this patch (to emacs-23).
=== modified file 'lisp/mail/rmail.el'
--- lisp/mail/rmail.el 2010-08-20 07:11:35 +0000
+++ lisp/mail/rmail.el 2010-10-06 07:22:53 +0000
@@ -2742,7 +2742,9 @@
nil t 'unibyte)
(message "Malformed MIME quoted-printable message")))
((and (string= character-coding "base64") is-text-message)
- (base64-decode-region (point-min) (point-max)))
+ (condition-case err
+ (base64-decode-region (point-min) (point-max))
+ (error (message "%s" (cdr err)))))
((eq character-coding 'uuencode)
(error "uuencoded messages are not supported yet"))
(t))
---
Kenichi Handa
handa <at> m17n.org
This bug report was last modified 14 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.