Mail corrupts PDF attachments

I've had this problem for a while now, usually on older emails i've kept in my inbox, but it's started happening on more recent emails now and is becoming a real nuisance. Basically, sometimes, when i go to view or download a PDF attachment, preview tells me "Couldn’t open the file. It may be corrupt or a file format that Preview doesn’t recognize." I'm using gmail through imap on Mail. The attachement itself is fine though. I can download the attachment through gmail itself and preview displays it fine. Also, mail displays the inline preview as a small black box.

Any ideas why mail is corrupting my attachements? i've already tried rebuilding all my mailboxes multiple times, and deleting and redownloading all my messages, but the problem hasn't gone away.
Thanks for any help.

Message was edited by: zig_k

Macbook Pro SR 2.4 GHz, Mac OS X (10.5.6)

Posted on Apr 15, 2009 2:02 PM

Reply
18 replies

Apr 23, 2009 2:12 PM in response to zig_k

I am having a similar problem. I am using a third party email and access it through Apple Mail. But I think it has nothing to do with the app. Basically all of the pdf and zip attachments that I receive from gmail users shows as corrupted. In reality though they are empty - 0Kb. I even tried downloading them via the webmail access (using a browser), but it's the same - 0Kb. I don't even know what to do.

Apr 27, 2009 6:25 AM in response to zig_k

zig_k,

How did you re-download the messages? Did you remove the account then re-add it? What I would do is Move the files and folders I list below to the desktop. Then re-setup mail.

com.apple.mail.plist from the Macintosh HD -> User -> YOUR USER -> Library -> Preferences
com.apple.mail.downloads.plist from the same folder as above
& the Mail folder in Macintosh HD -> User -> YOUR USER -> Library

If all works you may delete the files. The plist files hold settings like were you store your notes and todos. And the mail folder is a copy of all you mail. You can go through it if you like.

Hope that helps,
Weston

Aug 14, 2009 4:55 PM in response to zig_k

I have the same problem. Corrupt attachments in Mail but not if I login to gmail using the web interface. Seems to happen with some .doc files as well. Occasionally, I get a little black box at the bottom of the e-mail rather than the usual icon representing the attachment. I've tried rebuilding gmail imap account and the offending mailbox several times (which takes a very long time), without results. I'm wondering if it has to do with my very slow download speeds in Gmail IMAP which have been noted by others. I also wonder if reducing the number of connections to gmail imap would help (which cannot be done in Mac Mail.app, as far as I know).

Aug 31, 2009 4:22 PM in response to zig_k

My problem is very similar, but slightly different. When I attach PDFs and .DOC files to outgoing mail, I frequently get a reply saying "Hey you didn't attach anything." The reply will sometimes have a bunch of gibberish at the bottom, which leads me to believe that the file is getting included in the email, but somewhere along the line is mis-translated into a text file instead of preserved as an attachment.

I'm using Google Apps IMAP with the Mail 4.0 application.

When I go to the browser window in Safari and manually attach it, there's no problem.

Haven't had the incoming mail problem, just outgoing.

Sep 3, 2009 1:43 PM in response to Ernie Stamper

I'm having the same issue -- large PDFs in Gmail IMAP get corrupted after downloading in Apple Mail. I've tried rebuilding my mailbox several times, removing the whole account from Mail and re-downloading everything. I had hoped that Snow Leopard would make things better, but no luck. I can access these attachments fine in Thunderbird, Gmail web, but they're corrupt on my Mac when downloaded through IMAP in Mail.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mail corrupts PDF attachments

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.