From: pmlists@free.fr (Peter Münster)
To: ding@gnus.org
Subject: viewing `application/octet-stream' MIME parts
Date: Tue, 20 Sep 2011 22:06:38 +0200 [thread overview]
Message-ID: <871uvbdlm9.fsf@micropit.couberia.bzh> (raw)
[-- Attachment #1: Type: text/plain, Size: 889 bytes --]
Hello,
How can I view such MIME parts in-line?
The manual says:
If builtin viewers can not display the object, Gnus resorts to
external viewers in the ‘mailcap’ files.
So I created a ~/.mailcap file (just for testing):
--8<---------------cut here---------------start------------->8---
application/pdf; pdftotext %s -; copiousoutput # no problem here
application/octet-stream; pdftotext %s -; copiousoutput # does not work
--8<---------------cut here---------------end--------------->8---
When a pdf attachment has the content type `application/pdf', there is
no problem, but if it's `application/octet-stream', then emacs wants to
save the file (`Save MIME part to ...'), when pressing RET.
Please find attached 2 pdf files, one with content type
`application/pdf' and the other with `application/octet-stream' as
example.
TIA for any help!
--
Peter
[-- Attachment #2: test file 1 --]
[-- Type: application/pdf, Size: 5433 bytes --]
[-- Attachment #3: test file 2 --]
[-- Type: application/octet-stream, Size: 5433 bytes --]
next reply other threads:[~2011-09-20 20:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-20 20:06 Peter Münster [this message]
2011-09-20 20:16 ` Adam Sjøgren
2011-09-20 21:05 ` Peter Münster
2011-09-20 22:21 ` Adam Sjøgren
2011-09-21 7:50 ` Peter Münster
2011-09-21 7:59 ` Adam Sjøgren
2011-09-20 23:05 ` Katsumi Yamaoka
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=871uvbdlm9.fsf@micropit.couberia.bzh \
--to=pmlists@free.fr \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).