Previous 1 2 Next 24 Replies Latest reply: Aug 12, 2014 4:49 AM by Jules2000
Fred Tsai Level 1 (0 points)

I got corrupt attachments by using Apple Mail, IMAP on both Gmail and my company email. The problem continues since Lion, Mountain Lion is the same still. Any suggestion?


This is really a trouble to me...


Look, the main reason I bought Mountain Lion on 25th this month is Mail improvement. And seems the hug problem is not solved at all... what a pity...

I might have to go back to the less integrated 3rd party apps... Can some one answer me?

MacBook Pro (15-inch Mid 2010), OS X Mountain Lion
  • Fred Tsai Level 1 (0 points)

    This is a problem to me for a long time... I tried to search on the internet, and the strange thing is on the same Mac, same internet condition, same person using the Mac... Why I can get full mail attachment every single time by using Sparrow or Thunderbird, but has a 70% up chances to get corrupted attachment on Apple Mail?


    This just don't make sense to me... Some people said it is Gmail's issue, but it definitely not a Gmail issue.


    By the way, the corrupt situation began since I upgrade to OS 10.7. I did not have any issue with it on 10.5 or 10.6 years ago.

  • Austin Kinsella1 Level 6 (11,510 points)

    Are you saying that 70% of attachments you are getting on Mail are corrupt? Is it size related?

  • Fred Tsai Level 1 (0 points)

    Not all the time... but some days can up to 70%. The size... It also has the same situation even when some files are less than 2 mb. I tried to make a screen shot of the situation... please forgive me I didn't take the full screen.


    In the photo below, when I tried to open the file it said There was an error opening this document... This is the file I received today via Apple Mail (on my MBA with Mountain Lion).


    Screen Shot 2012-07-27 at 7.29.08 PM.png

  • MrHoffman Level 6 (14,832 points)

    The message sizes question has already been asked, so here are some other questions...


    Are any particular file types involved in the corruptions, or are all file types involved?


    What is the sending system?  (Are all the corrupt files from the same sending system, or are the problems here arriving from a variety of different ones?)


    What software is involved in viewing the files?    I see some Adobe software involved.  Is anything else used to view these messages, and reporting corruptions?


    Have you tried viewing the failed PDF files with Preview, for instance?  (Control-Click on the icon for the attached file and select Preview from the list of files for the Open With... option in the popup.)


    Have you tried saving the attached files from mail to your desktop, and opening the files from there using the Adobe tools and with Preview?


    Are there any anti-virus tools active either on the mail server, or on your OS X system?  If so, does disabling those change the behavior with the mail attachments?


    Is your version of the Adobe software current?  (Same for whatever other software is in use here.)


    View the raw message source, and see if the sorts of MIME file types for the attachments makes sense for the files.  If you're not sure, post the file types used for the attachments, and we'll check that. > View > Message > Raw Source


    Here's the MIME header for a multi-part message section containing a PDF:


    Content-Type: application/octet-stream;


    Content-Transfer-Encoding: base64

    Content-Description: document.pdf

    Content-Disposition: attachment;


  • Fred Tsai Level 1 (0 points)

    Well no particular file, any file can be corrupted in my experience. I've seen corrupted JPG files, PDF files, MS word files, excel files, and even .zip files.


    It doesn't matter who send the email, it could happen on any email in my mail box. When I use other application like Thunderbird or Sparrow doesn't cause such issue.


    Believe me I know what I'm doing, with the latest Mountain Lion, Latest Adobe Reader I can get from official website and it does not matter which version I'm having. No antivirus program involved, even if there is antivirus program involved, why I don't get trouble in other mail apps?


    The problem is, the attachment files in the email was not correctly downloaded. It doesn't matter which program I use to view it. If I save the attached files onto my desktop, situation remain the same. The only possible way I can do is to rebuild the entire mail database. However, the rebuilding process could be hours for I have tons of emails saved on the server, and it does not guarantee will solve the problem. Why bother spending so much time only simply want to get a file? The point is, by using Thunderbird I can get the file instantly, with Mail I can't?


    The following is part of the corrupted file's MIME header. I'm not sure if this is enough for I didn't copy the entire header for it contains some sender information. I would probably not sharing those email addresses.




    MIME-Version: 1.0

    Content-Type: multipart/mixed; boundary="=_997f4b2baebbe275a574812f1ca64cdf"



    Content-Type: multipart/ALTERNATIVE;




    Content-Disposition: attachment;

              filename*0="=?UTF-8?Q?GMOs=20=E0=B9=80=E0=B8=A1=E0=B8=A5=E0=B9=87=E0=B8=94 =E";

              filename*1="0=B8=9E=E0=B8=B1=E0=B8=99=E0=B8=98=E0=B9=8C=E0=B8=82=E0=B9=89= E0";

              filename*2="=B8=B2=E0=B8=A7=E0=B9=82=E0=B8=9E=E0=B8=94=E0=B8=AB=E0=B8=A7=E 0=";


    Content-Type: APPLICATION/PDF;





    Content-Transfer-Encoding: base64

  • Austin Kinsella1 Level 6 (11,510 points)

    Have you any Mail plugins or add-ons?


    Are you saying that, if you access this same message with Thunderbird or Sparrow you can successfully read the attachments?

  • MrHoffman Level 6 (14,832 points)

    It's probably best if you ring up Apple Support here, if you have that access.


    In terms of the environment, AV has a habit of getting itself entwined all over.  AV can be quite unpredictable, if (when?) it goes wrong.  (And when I'm debugging, I generally don't trust the environment; not until the pieces have been verified.)


    Try a different login with the same mail server credentials; see if it's a corruption within the local environment.


    And yes, disable plugins as Austin Kinsella1 suggests, and look for and remove any lingering input managers that might be around.  (If you're in a different login, this will happen automatically.)


    Are all the messages that are getting stomped on arriving with UTF-8 encoded filenames?  Try using the ASCII subset for the filenames.


    And do you get the same errors with a different mail server?  (Have you tried attachments from a different mail server, and determined if those too are corrupted?)

  • Fred Tsai Level 1 (0 points)

    Thanks for your suggestion.


    No plugin installed at all. Pure installation got the same issue.

    I have to say that my internet condition might not be pefect, but I think that should not be a problem. I can successfully download and install Mountain Lion's 4G files from internet, but I can't get the correct 1mb attached file from Mail? BTW, I'm currently in Thailand. The environment is not satisfying, but should be barely ok to do anything I want except Apple Mail.


    To Austin, yes, I am forced to use Sparrow and Thunderbird since when I use them I totally have no problem reading ANY of the attachments. However, by doing that also means I have to give up all those useful features of Apple Mail.


    For your other suggestions, I will try and let you know if those will work.

  • Austin Kinsella1 Level 6 (11,510 points)

    Fred, it helps those trying to help you if you carefully answer any questions they ask. Remember, they cannot peep over your shoulder to see what is happening. So, you put up a screen shot of a failure to open a PDF attachment. The question I asked is, can you successfully download this message from your IMAP server using Sparrow or Thunderbird?

    If you can, then it is likely that we don't have to worry about faulty routers, internet settings or anything like that and can focus on Mail and its environment.


    As a further test, if Sparrow or Thunderbird can successfully read the same message, maybe you would create a new user account, set up Mail there and see what happens when you try downloading that message.

  • Fred Tsai Level 1 (0 points)

    Thank you Austin,


    I tried to answer every question here... As I mentioned several times, I can use Thunderbird and Sparrow to receive emails with "complete" email attachment files. Of course, I'm using IMAP all the time.


    That is why I said it is obviously an Apple Mail issue.


    If my words make anyone feel offensive, I apologize. However, I think people should really read the articles or so useful suggestions here. Moreover, I was hoping any Apple staff or developter would more or less know this issue and try to solve it. I believe I'm not the only one has such problem.


    I tried to create a new user account, login with the new user account, setup the IMAP email account in Apple Mail, unfortunately the situation remain the same. Nothing changed. Still, with this new user account, I tried both on sparrow and on Apple Mail. Sparrow did what I expect to read every single attachment normally. However, Apple Mail corrupts quite often.


    I asked some of my friends who write programs for living, and they had no idea how to solve this issue either. Perhaps when Apple Mail download the attachments there are some protocol that are different from others? Like do they compress the data first or something? In my case, I found that the files which are corrupted from Apple Mail are smaller than the completed files downloaded by Thunderbird or Sparrow (Thunderbird and Sparrow I got the exactly same file everytime).


    I don't know how to show you what happened on both my Macbook Pro (2010) and Macbook Air (2011) without showing too much private information (names, emails, and so on). Again, I'm seeking for help on this issue. Meanwhile, I apologize again if someone feel uncomfortable. I felt so frustrated...


    P.S. I used Mac since about 7~8 years ago, and I think I'm not a newbe to Apple products. I personally got MBA degrees in IT management, therefore the basic operation on the OS, or how the network routing, internet environment, email protocols are quite familiar to me. Hope you understand that I feel kind of bothered everytime when someone else kept saying things like "you should check your routing, are you sure you are using IMAP correctly, blablabla...".

  • Fred Tsai Level 1 (0 points)

    Maybe I should try to compare the differences for you guys.


    If you want please see the photos I put in my dropbox folder:



    Hopefully this might help if someone can figure out what happened.

  • Austin Kinsella1 Level 6 (11,510 points)

    Hi again Fred. I'm not sure why you're apologising, or who to. Just for your information, none of the responders on ASC are Apple employees or developers, just ordinary users trying to help other users.


    We have established (please correct anywhere I am wrong):


    You are using Mountain Lion.

    Attachments you receive with Apple Mail have a high chance of being corrupted.

    You have no plugins or additions for Mail.

    The corruption occurs regardless of file type of the attachment, and is not size related.

    The same attachments, when downloaded with Sparrow or Thunderbird, are not corrupted.

    The corruption also occurs with Mail in a newly-created account account.

    The corruption was occurring with Lion, but not Snow Leopard.


    I think the next thing is to see if we can find any errors relating to the downloads. Quit Mail, then find in Applications/Utilities and run it. Restart Mail, and try to access one of the failing attachments. See are any relevant error messages posted in console.

  • Fred Tsai Level 1 (0 points)

    Thank you Austin!


    I did your instruction, and found the following from colsole which occurred when I open the corrupted attach files:



    The jpg image file:

    7/30/12 7:32:56.586 AM WindowServer[125]: CGXDisableUpdate: UI updates were forcibly disabled by application "Mail" for over 1.00 seconds. Server has re-enabled them.

    7/30/12 7:32:56.716 AM WindowServer[125]: reenable_update_for_connection: UI updates were finally reenabled by application "Mail" after 1.13 seconds (server forcibly re-enabled them after 1.00 seconds)

    7/30/12 7:33:11.849 AM Mail[36034]: ImageIO: JPEG Corrupt JPEG data: premature end of data segment


    The pdf file tried to open by preview:

    7/30/12 7:39:38.321 AM Preview[36106]: PVPDFPageContainer initWithURL:file://localhost/Users/fredtsai/Library/Containers/ ata/Library/Mail%20Downloads/Spec%20NTDC-C19072555_0000.pdf failed, error = Error Domain=NSCocoaErrorDomain Code=259 "The file “Spec NTDC-C19072555_0000.pdf” could not be opened." UserInfo=0x7f9663820970 {NSURL=file://localhost/Users/fredtsai/Library/Containers/ ibrary/Mail%20Downloads/Spec%20NTDC-C19072555_0000.pdf, NSLocalizedDescription=The file “Spec NTDC-C19072555_0000.pdf” could not be opened., NSLocalizedRecoverySuggestion=It may be damaged or use a file format that Preview doesn’t recognize.}


    Any suggestion what's next?

  • Austin Kinsella1 Level 6 (11,510 points)

    Hmm. That doesn't help me. Next time you get  a message with a corrupted attachment, note the time then see if Mail reported anything in Console at that time.

Previous 1 2 Next