Mail Downloads folder

Hello everybody !



I have a question connected with mail.app


I am addicted to making back-ups of everything I have on my computer. Correspondence in mail in a part of important data I need to regulary back-up just in case. Untill now I've been back-uping the folder "User->Library->Mail->V2" because I thought that all the messages INCLUDING ATTACHEMENTS are stored there.


But recently I've found out the folder with a significant size "User->Library->Containers->com.apple.mail->Data->Library->Mail downloads" that contain (well, obviously) attachements to the messages from mail.app.



THE QUESTION:


What is the role of "Mail downloads" folder? Will all attachements (in mail.app) be deleted in case I clean this folder by deleting all it's content ? Or should I back-up it together with "V2" folder to be able to restore all information from mail.app (includint attached files) on my computer?



Thank you in advance 🙂

MacBook Air, Mac OS X (10.7.1)

Posted on Jun 13, 2013 12:04 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Jun 15, 2013 5:56 AM

Okay lol I have finally found an answer in google :


  • If you double click on an attachment icon in a Mail message, or do Quick View, it will download a copy of the attachment to your user directory > Library > Mail Downloads.
  • If you Save the attachment you will have a second copy downloaded to the location specified in Preferences > General > Downloads folder:
  • To automatically delete the extra copy in Mail Downloads, change Preferences > General > Remove unedited downloads: to 'when Mail Quits'. Any file placed in the folder "Mail Downloads", which you haven't modified will be deleted.


The Mail Downloads folder is now cleaning reuglary, just as it seemed logical to me in the begining of the thread )


Data in V2 folder is all I need to backup to be able to restore completely everything in my mail.app


Thank everybody for your time!

22 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Jun 15, 2013 5:56 AM in response to Moloy

Okay lol I have finally found an answer in google :


  • If you double click on an attachment icon in a Mail message, or do Quick View, it will download a copy of the attachment to your user directory > Library > Mail Downloads.
  • If you Save the attachment you will have a second copy downloaded to the location specified in Preferences > General > Downloads folder:
  • To automatically delete the extra copy in Mail Downloads, change Preferences > General > Remove unedited downloads: to 'when Mail Quits'. Any file placed in the folder "Mail Downloads", which you haven't modified will be deleted.


The Mail Downloads folder is now cleaning reuglary, just as it seemed logical to me in the begining of the thread )


Data in V2 folder is all I need to backup to be able to restore completely everything in my mail.app


Thank everybody for your time!

Reply

Sep 26, 2014 7:59 AM in response to Moloy

Hi Moloy,


Sorry to lug this old thread back into action, but I'm not witnessing two of the behaviors you describe here. I found this conversation while researching Apple Mail's non-intuitive attachment editing behavior as it relates to people with a Windows background (namely, my wife, who is constantly frustrated with OS X). I was hoping to find a solution that would disallow Mail from saving any edited files back to the original Downloads Folder location (which is admittedly non-intuive, though I've long since gotten used to it and know where to look when it happens).


Anyway, while the setup you describe above sounds like a perfect solution, it isn't working in my case:

  • "If you Save the attachment you will have a second copy downloaded to the location specified in..." Not what I'm seeing. I just tried opening a Word doc that was sent to me, made a slight change, and saved to its current Downloads location. I do have a second location specified in Mail for the purpose of saving attachments, which is where such a message would assumedly have been moved. Nonetheless, it didn't move anywhere.
  • "Any file placed in the folder "Mail Downloads", which you haven't modified will be deleted." Here again, no dice. While that is clearly what is meant by the setting's verbiage, I set it as such and then previewed a simple attached image, then verified that it was stowed in the Downloads folder. I then quit Mail and watched. Nothing happened, the file and its folder were (are) still there. I re-opened/re-quit Mail, no change.


I don't really expect a solution to my issues, it's possible that there's just something wrong with my system (corrupted preferences or something), but I do want to alert others who come across this thread that the solution cited may not work for them. But if anyone has ideas for making my Mail follow Moloy's rules, I'm all ears. 🙂

Reply

Jun 13, 2013 12:17 AM in response to Moloy

When you receive an attachment from someone and open it, Mail stores it in this location. These attachments are still available on mail on your server, so this is more of a temporary local folder for these items.


Are you using Time Machine, or another routine to back up your system?

Reply

Jun 13, 2013 12:49 AM in response to Topher Kessler

Thank you for the answer !


Yes I did learn that Mail.app saves attachements in the Mail Downloads folder, but I do not understand - why is this action done ? Why does the system make a folder with 1Gb size (I use mail.app for like 4 months only) without asking me? One of the reasons I love MacOs - it does not litter the system as much as Windows does. And huh, here we go - the program itself saves attachements even from spam messages just because I opened them (out of curiosity) in some folder in a weird location . . .



"Are you using Time Machine, or another routine to back up your system?" Unfortunately I did not get used to Time Machine by any means, so I back-up manualy.

Reply

Jun 13, 2013 5:56 AM in response to Moloy

The program needs some place to store attachments that you open. If someone sends you a Word document, then it will need to be stored temporarily in some location so the system can have it ready if and when you decide to access it. One option is to store these along with the message itself, the other is to leave it on the server, and the last is to store them all in a central location. Mail does the latter.


This same behavior is true for any files you open in any application, be they in a Web browser, email client, or otherwise. Many programs cache files so if you browse by them it can make them available quickly without requiring you re-download them every time. The system merely downloading content in this manner will not hurt you. If you remove the corresponding email message, then the temporary items should disappear as well (eventually). If not, and they appear orphaned, then you can remove them manually without hurting anything. The system will only repopulate the items as you use it.

Reply

Jun 13, 2013 9:08 PM in response to Topher Kessler

1) Okay, so it looks like I am starting to understand ( in this case I guess all other mail programs like MS Outlook, Windows Live, Thunderbird etc have the very same folder that automatically fills up with opened/viewed files ?)


2) Returning to my first post : If I delete this temporary folder "Mail Downloads" will the attached files remain in my mail.app ? Or in another words : are all messages AND ATTACHEMENTS stored in folder "Mail->V2"? In case this is correct, I can clean the folder Mail Downloads any time WITHOUT damaging attached files in my mail.app ? (the contect will just refill with temporary files if I view/open the attachements again)


3) "...any files you open in any application, be they in a Web browser..." from this statement I realise that there are another folders that occupy my disc space and that are to be cleaned manualy by user ? Since I use apple laptop, I have strict limitation of space even having maximum 512 gb ssd. Would you recommend cleaning these temporary folders manualy, or should I use CleanMyMac ( I heard that a user should care a lot before cleaning his Mac with 3d party apps, because it may corrupt some important files or occasionally delete them)

Reply

Jun 13, 2013 9:28 PM in response to Moloy

These programs will have their own options for caching attachments and other files.


As long as the attachments are on the server, then they will be re-downloaded when you next sync with the server. If your email accounts are IMAP accounts, then this means that if you will be able to access the attachments again as the messages simply sync with what is on the server. On the other hand, POP accounts may download the files to your system and then remove them from the server so they may not be available afterwards. You can check the type of account by going to the Mail preferences, and in the Accounts section check the type of account right under the account name (ie, Gmail IMAP is an IMAP account).


These folders aren't "to be cleaned" on any regular basis, by any means. They are there to support the program's functions, and if you remove them you will to some degree disrupt the program's functions. If there is corruption in these folders then this can slow the program down or cause other problems, in which case a cleaning of sorts may be warranted; however, if not then a cleaning is likely unnecessary.


If you are running low on space, then I would recommend you leave the system and application support files alone, and instead tackle how much user data you have on the system instead. These are things like movies, music, and pictures, with which the system does not interact.

Reply

Jun 13, 2013 10:59 PM in response to Topher Kessler

Okay I clearly understand you position!

I use POP mail account, because it is important for me to have complete back-up copy of all messages and attachements.

Although I've attentively got acquainted with your message let me kindly re-ask the question, because the following statement seems weird to me.


Mail stores all messages, account info, notes, message folder structure in one place : "User->Library->Mail->V2" , while storing another INTERGRAL part of messages (attachements) in COMPLETELY another place : "User->Library->Containers->com.apple.mail->Data->Library->Mail downloads"


Is there any explanation why MacOs separates these two folders ? Why won't the system keep the full back-up in one folder ?



P.S. So to be able to restore completely my emain history I have to back-up BOTH folder V2 AND Mail Download ?

Reply

Jun 13, 2013 11:20 PM in response to Moloy

I am not sure why Apple placed these in separate folders; it could have placed them within the same folder. Mail is sandboxed, so technically it accesses all of these folders either directly in the Containers folder, or through aliases (i.e., for the Mail Downloads folder) from within the Containers folder. However, sandboxing is a separate detail here.


To ensure all of the Mail data is preserved as-is on your system, you will need to back up both folders; however, if you use a complete system backup like Apple's Time Machine service, or a cloning tool, then you will not have to bother with doing this manually. This is the route I recommend to establish a backup routine, as it will ensure you get everything.

Reply

Jun 14, 2013 3:10 AM in response to Topher Kessler

Well, I have just deleted the Mail Downloads folder (copied it on my external HDD just in case). Then I turned wifi off to make sure mail.app doesn't download anything from server.


And nevertheless I managed to open every single attachement . . .

Reply

Jun 14, 2013 6:17 AM in response to Moloy

Right. When Mail downloads messages from the server, it includes the attachment as well. These are in the standard mailbox structure. When you open the attachment then it is placed in the Mail Downloads folder and opened from there. If you have not saved the attachment elsewhere, but have opened it for viewing and during this time you delete the initial message, then the one on the Mail Downloads folder will be the only message you have opened. This allows for you to continue managing your email without interruption, regardless of the status of the attachments you're currently interacting with. In this manner, the Mail Downloads folder is simply a cache.

Reply

Jun 15, 2013 5:00 AM in response to Topher Kessler

But dear mr. Topher Kessler could you plese explain why do I "...need to back up both folders..." if Mail Downloads folder is simply a cache folder? What information does it posses that is required by mail.app to restore the whole message history? And why isn't it to be regulary cleaned . . .


By the way, I have found folder "User->Library->Mail->V2->Mailboxes->*the name of my mailbox*->...->Data->...->Attachements & Messages". And this folder named "Attachements" contains all the attached files, shown in mail.app in the mailbox !


Therefore the role of "Mail Downloads" becomes even more complicated for me . . .

Reply

Jun 15, 2013 5:40 AM in response to Alfred DeRose

Well, thats another exciting question 🙂 In my point of view IMAP protocol is not reliable, because in case the server's data gets corrupted, mail.app will sync with IMAP and all my mail structure will fail without possibility to recover. And there is nothing I can do with it


And what I like in POP - I am responsible myself for the safety of all important information. And in case my file system becomes corrupted, I can always easily restore it from online storage / external back-up drive.



But anyways, as I have already said....this is another topic )) I do not feel like I am fanatical about back-up, I just don't like the way time machine works, and all I need to learn : is Mail->V2 the only folder that I need to restore everything in case of some fail?

Reply

Jun 15, 2013 6:10 AM in response to Moloy

I believe that's what I've been telling you all along. The scenario in which you need to back up the Mail downloads folder to preserve files is if you have an attachment open, but then remove the corresponding message and havent yet saved the attachment elsewhere.


As for Time Machine and getting used to it, there's really not much to get used to. Simply get an external drive and attach it, and when prompted choose it for use with Time Machine. Then be sure to regularly attach it to your system, and it will make full system backups hourly.


The main benefit of Time Machine is that in the event of a full system failure or massive data loss, you can restore to practically any system and be up and running exactly where you were, without the need to reinstall and migrate data, though this approach is also an option.

Reply

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 Downloads folder

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