* gnu emacs rmail question
@ 2006-12-06 21:13 Lynda LoDestro
2006-12-07 4:17 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Lynda LoDestro @ 2006-12-06 21:13 UTC (permalink / raw)
I have spent quite a while using emacs's help before resorting
to this posting. I apologize if I missed the solution.
I am on linux, running GNU Emacs 21.3.1
The question is about attachments in rmail---they arrive
embedded, like this:
---begin illustration of embedded message
------=_NextPart_001_003E_01C71874.E3F05580--
------=_NextPart_000_003D_01C71874.E3F05580
Content-Type: application/pdf;
name="SPSEnewauthcard.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="SPSEnewauthcard.pdf"
JVBERi0xLjQNJeLjz9MNCjQgMCBvYmogPDwvTGluZWFyaXplZCAxL0wgNzcyNjQvTyA2L0UgNjA3
MDIvTiAxL1QgNzcxMzgvSCBbIDEzNTYgMjI1XT4+DWVuZG9iag0gICAgICAgICAgICAgICAgICAg
DQp4cmVmDQo0IDUzDQowMDAwMDAwMDE2IDAwMDAwIG4NCjAwMDAwMDE1ODEgMDAwMDAgbg0KMDAw
MDAwMTY3NiAwMDAwMCBuDQowMDAwMDAyMDgzIDAwMDAwIG4NCjAwMDAwMDIzODYgMDAwMDAgbg0K
---end illustration of embedded message
I tried extracting the region (starting with JV...) and applying
the emacs function base64-decod<tab>
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?
Thank you,
Lynda
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gnu emacs rmail question
2006-12-06 21:13 gnu emacs rmail question Lynda LoDestro
@ 2006-12-07 4:17 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2006-12-07 4:17 UTC (permalink / raw)
> Date: Wed, 6 Dec 2006 13:13:19 -0800
> From: Lynda LoDestro <lodestro@llnl.gov>
>
> I tried extracting the region (starting with JV...) and applying
> the emacs function base64-decod<tab>
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-07 4:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 21:13 gnu emacs rmail question Lynda LoDestro
2006-12-07 4:17 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).