From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#7165: 24.0.50; rmail error "Invalid base64 data" Date: Fri, 08 Oct 2010 21:15:54 -0400 Message-ID: <1c62xcgo8l.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286588528 13668 80.91.229.12 (9 Oct 2010 01:42:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Oct 2010 01:42:08 +0000 (UTC) Cc: 7165@debbugs.gnu.org To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 09 03:42:06 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P4ORm-0004OQ-T8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Oct 2010 03:42:03 +0200 Original-Received: from localhost ([127.0.0.1]:55469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4ORm-0007W2-Eg for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Oct 2010 21:42:02 -0400 Original-Received: from [140.186.70.92] (port=50233 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4ORh-0007Vx-Cj for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2010 21:41:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4ORg-0002xS-57 for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2010 21:41:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4ORg-0002xN-1o for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2010 21:41:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P4Nzh-00087Q-Ob; Fri, 08 Oct 2010 21:13:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Oct 2010 01:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7165-submit@debbugs.gnu.org id=B7165.128658675931202 (code B ref 7165); Sat, 09 Oct 2010 01:13:01 +0000 Original-Received: (at 7165) by debbugs.gnu.org; 9 Oct 2010 01:12:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P4NzL-00087D-If for submit@debbugs.gnu.org; Fri, 08 Oct 2010 21:12:39 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P4NzJ-000878-Mh for 7165@debbugs.gnu.org; Fri, 08 Oct 2010 21:12:38 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P4O2U-0007yS-SR; Fri, 08 Oct 2010 21:15:54 -0400 X-Spook: Capricorn Attorney General mindwar cryptographic ICE X-Ran: &1IO`?rj"4Q1/PbeGd{"s(A0QW*3-OWX-nQf2-au`66#,2gb(|C|S)GILq(&Hw"&-ag&hQ X-Hue: yellow X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 08 Oct 2010 21:13:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40777 Archived-At: 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))