GNU bug report logs - #7165
24.0.50; rmail error "Invalid base64 data"

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7165 in the body.
You can then email your comments to 7165 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7165; Package emacs. (Wed, 06 Oct 2010 07:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kenichi Handa <handa <at> m17n.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 06 Oct 2010 07:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kenichi Handa <handa <at> m17n.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; rmail error "Invalid base64 data"
Date: Wed, 06 Oct 2010 16:26:32 +0900
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




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7165; Package emacs. (Sat, 09 Oct 2010 01:13:01 GMT) Full text and rfc822 format available.

Message #8 received at 7165 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Kenichi Handa <handa <at> m17n.org>
Cc: 7165 <at> debbugs.gnu.org
Subject: Re: bug#7165: 24.0.50; rmail error "Invalid base64 data"
Date: Fri, 08 Oct 2010 21:15:54 -0400
Kenichi Handa wrote:

> I suggest this patch (to emacs-23).

If you are looking for feedback, this looks good to me.

> === 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))




Reply sent to Kenichi Handa <handa <at> m17n.org>:
You have taken responsibility. (Thu, 14 Oct 2010 04:25:02 GMT) Full text and rfc822 format available.

Notification sent to Kenichi Handa <handa <at> m17n.org>:
bug acknowledged by developer. (Thu, 14 Oct 2010 04:25:02 GMT) Full text and rfc822 format available.

Message #13 received at 7165-done <at> debbugs.gnu.org (full text, mbox):

From: Kenichi Handa <handa <at> m17n.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 7165-done <at> debbugs.gnu.org
Subject: Re: bug#7165: 24.0.50; rmail error "Invalid base64 data"
Date: Thu, 14 Oct 2010 13:28:17 +0900
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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 11 Nov 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 226 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.