In Mountain Lion’s Mail app, I can delete attachments from mails others have sent me, but not from the mails I sent to others.
In the mailbox, the messages I have sent are not marked with the small paperclip, even when then have a attachments (however, their size is correct and includes the big attachments). When I select an individual message (or many), the "Delete attachements" menu item is grayed out.
How can I deleted attachments from mails I sent?
Best Answer
Based on the page http://lifehacker.com/5841097/how-to-delete-or-archive-attachments-in-apple-mail-and-free-up-disk-space I used the steps bellow.
** Method recommended only for those who feel comfortable using the Terminal **
change to the directory/folder with the emails typing in the terminal window
list the folders you have
or
you will obtain something like:
go to the folder of the account you want to clean, list the files and the result shows one or more mbox
or
if you have only one mbox, go to this folder, list it and you will see
change to the folder of the messages sent (note the backslash before the space) and list to see the files
the first file is a folder and contains all the messages and attachments in a series of subfolders. Now you will use the powerful unix
find
command to find all the files to be deleted and delete them.the
find
command can recursively descends the directory tree to search files by name and by size (among other options), so if you know that the attachmentes to be deleted are PDF files with more than 200k you can use the first command to find and list the files. Then if it's ok, delete them with the second command. The second example will find and delete zip files with more than 1 MB.and if you want to delete all attachments bellow the present folder, you can use one simple command. To confirm that you are at the correct folder verify first printing the working directory. Then, remove every Attachments folders bellow it.
repeat these operations on all mbox of the account