Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mail.app- 'Remove Attachments' corrupting mails

I have a weird issue that I've not seen mentioned anywhere. Wondering if anyone can give me any debugging tips.


I'm using Mail 5.0 in Lion 10.6.1 (issue was occurring in 10.6.0 as well).


I have Mail connected to Exchange Server 2010.


I have a fairly tight restriction on mailbox sizes so I have to remove attachments from emails before I file them.


My problem is this; about 1 in 3 times I remove an attachment the 'replacement' e-mail is full of gibberish characters.


Typically if I look at the raw source of the e-mail then the text version of the mail is retained correctly- it seems to be the Base64 encoded version that is corrupted.


Any idea what I can do to debug this? I have tried removing the envelope files and removing/adding the account back in and re-syncing it but the issue has reappeared.


I've reported this to Apple on http://bugreports.apple.com but have not had a response.


Thanks in advance.

Unibody MacBook Pro 15" 2.8GHz, Mac OS X (10.6.1)

Posted on Aug 22, 2011 7:48 AM

Reply
116 replies

Aug 23, 2015 10:40 AM in response to manfid

  1. In “Script Editor” switch on the preference setting called “Show Script menu in menu bar” so that you can easily access any apple script file you have from the menubar.
  2. Move the bar.scpt file into the folder ~/Library/Scripts/Applications/Mail so that it shows up in the AppleScript menu when you are inside the Mail application. If the folder doesn't exist, then create it.
  3. That’s it. From now on you can select any number of mail items in Mail that’s gone “bad” from attachment removals, and then choose to “clean” them by executing my script from the AppleScript menu. In order to see the changes you just need to deselect the mail items before viewing them again.


Good luck!

Oct 7, 2015 3:15 AM in response to Screaming.Pict

Hmm. I've bought a new computer. To be safe from old sins, I've made a clean install of El Capitan and I haven't used the Migration Assistant, I've made a manual transfer of necessary stuff.


So far, I haven't experienced the problem with corrupted messages after removing attachments. Which feels kind of natural. But on the other hand, all settings I've made are the same as with my old computer. So, what was causing the problem?


Or is it really so: has El Capitan finally solved the problem?

Mail.app- 'Remove Attachments' corrupting mails

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