From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: gnu emacs rmail question Date: Thu, 07 Dec 2006 06:17:56 +0200 Message-ID: References: <200612062113.kB6LDJes022348@unixbuild6.llnl.gov> NNTP-Posting-Host: dough.gmane.org X-Trace: sea.gmane.org 1165465100 18300 80.91.229.10 (7 Dec 2006 04:18:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 04:18:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 05:18:20 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsAiC-0006AB-3j for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 05:18:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsAiB-0006Gz-Dg for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Dec 2006 23:18:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GsAhn-00066U-US for help-gnu-emacs@gnu.org; Wed, 06 Dec 2006 23:17:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GsAhm-00065t-Dg for help-gnu-emacs@gnu.org; Wed, 06 Dec 2006 23:17:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsAhm-00065n-9G for help-gnu-emacs@gnu.org; Wed, 06 Dec 2006 23:17:54 -0500 Original-Received: from [192.114.186.73] (helo=heller.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GsAhm-0007Yp-1b for help-gnu-emacs@gnu.org; Wed, 06 Dec 2006 23:17:54 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-247-78.inter.net.il [80.230.247.78]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id BEY70557 (AUTH halo1); Thu, 7 Dec 2006 06:17:52 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: <200612062113.kB6LDJes022348@unixbuild6.llnl.gov> (message from Lynda LoDestro on Wed, 6 Dec 2006 13:13:19 -0800) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39301 Archived-At: > Date: Wed, 6 Dec 2006 13:13:19 -0800 > From: Lynda LoDestro > > I tried extracting the region (starting with JV...) and applying > the emacs function base64-decod > A lot was decoded correctly, but not all the \xxx characters were > correct. This was determined by diff'ing with correct version of the > pdf file. acroread on the result was a failure (blank pages). > > Do you have advice? After decoding with base64-decode-region, type C-c (to get out of RMAIL Edit submode), and then use the rmail-redecode-body command to decode the \xxx sequences. rmail-redecode-body will ask for an encoding; give it the encoding mentioned in the Content-Type's `charset' property. The above should work for `Content-Type: text' attachments. For other types, such as PDF, I suggest to use write-region to copy the decoded attachment to a disk file, then launch xpdf or any other reader on that file. Do NOT use rmail-redecode-body with any attachments that are not of type text.