An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
email forwarding inline pdf broken?
#21071 03/14/12 03:14 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
I received a flyer I needed to forward to a group. I sent it to myself, bcc the group list. I was surprised to see the MESS it made in my Sent Items. It inserted raw PDF crap (as viewed as text) inline instead of rendering the PDF

Here are the original headers as the attachment was received, and rendered correctly. This is from a "message, view, raw source":


------=_20120314095421_23565
Content-Type: text/plain; name="Fox Hunt Flyer.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Fox Hunt Flyer.pdf"

JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu
Zyhlbi1VUykgL1N0cnVjdFRyZWVSb290IDIxIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4+


and here's what Mail forwarded, again viewing raw source:


--Apple-Mail-17--900823720
Content-Disposition: inline;
filename="Fox Hunt Flyer.pdf"
Content-Type: text/plain;
name="Fox Hunt Flyer.pdf"
Content-Transfer-Encoding: base64

JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu
Zyhlbi1VUykgL1N0cnVjdFRyZWVSb290IDIxIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4+


Yep, that's right. "Content-Type: text/plain;", "Content-Disposition: inline;". Brilliant. Lets render that PDF file as TEXT !

I don't have time right now to figure out the specifics of this. Anyone else care to play and radar it? I suspect its due to the original not specifying a Content-Type, and Mail deciding to default to "text". Yet Mail displays it correctly when received...?

Last edited by dianne; 03/15/12 11:59 AM. Reason: moved from Mac OS X Applications to Networking.

I work for the Department of Redundancy Department
Re: email forwarding inline pdf broken?
Virtual1 #21072 03/14/12 03:44 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
Yeah, seems like a Content-Type issue since it should be application/pdf.

Problem on the original sender's end. Garbage In Garbage Out.

I'd just try saving the pdf to the Finder, and remove the pdf from the forwarding email and then re-add it from the finder so it gets the proper content type.


iMac 2.7 GHz Core i5, 12 GB RAM, OS X 10.9, Int SATA 1 TB, Ext Fire 2 TB / 1 TB / 1 TB / 500 GB / 300 GB
Former MacFixIt Forums member since 11/17/99
www.rhubarbproductions.com
Re: email forwarding inline pdf broken?
Kevin M. Dean #21074 03/14/12 08:42 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
Originally Posted By: Kevin M. Dean
Yeah, seems like a Content-Type issue since it should be application/pdf.

Problem on the original sender's end. Garbage In Garbage Out.

Normally I might agree on the GIGO error, but in this case it displays it correctly, showing it understands what the correct interpretation of the headers is. But then when sending the message by clicking Forward, it apparently completely rebuilds the attachments, and if no content type is specified, (and I don't think it's mandatory in the standard?) it sets it to "text", which then causes it to interpret its own creation wrong.

So it's a case of inconsistent behavior. Interpreting by filetype in one instance, and as always text in another.


I work for the Department of Redundancy Department

Moderated by  alternaut, dianne, MacManiac 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.017s Queries: 20 (0.013s) Memory: 0.5822 MB (Peak: 0.6357 MB) Data Comp: Zlib Server Time: 2024-04-25 17:03:24 UTC
Valid HTML 5 and Valid CSS