From: Kenichi Handa <handa@m17n.org>
To: 7165@debbugs.gnu.org
Subject: bug#7165: 24.0.50; rmail error "Invalid base64 data"
Date: Wed, 06 Oct 2010 16:26:32 +0900 [thread overview]
Message-ID: <tl762xf3hp3.fsf@m17n.org> (raw)
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@m17n.org
next reply other threads:[~2010-10-06 7:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-06 7:26 Kenichi Handa [this message]
2010-10-09 1:15 ` bug#7165: 24.0.50; rmail error "Invalid base64 data" Glenn Morris
2010-10-14 4:28 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tl762xf3hp3.fsf@m17n.org \
--to=handa@m17n.org \
--cc=7165@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.