<<< Date Index >>>     <<< Thread Index >>>

Viewing pdf typed as 'application/octet-stream'



Hi all,

I got a mail with a pdf attached. The Content-Type of the attachment
says 'octet-stream'. So I can't open it using the application/pdf
entry in /etc/mailcap.

What can I do to open such a pdf within mutt? Mapping 'octet-stream' to
a pdf-viewer doesn't seem to be a good idea... Can I use the filename
to decide how to handle the attachment in such a case?

Here is an excerpt of the mail:

| Content-Type: multipart/mixed; boundary=[...]
| [...]

| [-- Attachment #2: ANMELD~1.PDF --]
| [-- Type: application/octet-stream, Encoding: base64, Size: 211K --]
| Content-Type: application/octet-stream; name="ANMELD~1.PDF"
                            ^^^^^^^^^^^^
| Content-Transfer-Encoding: base64
| Content-Disposition: inline; filename="ANMELD~1.PDF"

TIA
Til