emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#7165: closed (24.0.50; rmail error "Invalid base


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#7165: closed (24.0.50; rmail error "Invalid base64 data")
Date: Thu, 14 Oct 2010 04:25:02 +0000

Your message dated Thu, 14 Oct 2010 13:28:17 +0900
with message-id <address@hidden>
and subject line Re: bug#7165: 24.0.50; rmail error "Invalid base64 data"
has caused the GNU bug report #7165,
regarding 24.0.50; rmail error "Invalid base64 data"
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
7165: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7165
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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
address@hidden



--- End Message ---
--- Begin Message --- Subject: Re: bug#7165: 24.0.50; rmail error "Invalid base64 data" Date: Thu, 14 Oct 2010 13:28:17 +0900
In article <address@hidden>, Glenn Morris <address@hidden> 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
address@hidden


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]