21

I have a really low capacity MacBook Air. Earlier this year, I discovered I could keep it usable without a bunch of "running low on disk space" warnings by limiting the caching performed by Safari and Mail. In Safari it was easy, it's in Preferences, but in Mail it was a bit buried - select the account, advanced tab, and then "don't keep copies of any messages".

Problem is, it seems like in Mavericks this preference is gone. Is there an equivalent? I'm out of room on my Air once again.

  • apple.com/feedback/mail.html – Kevin Chen Dec 9 '13 at 17:35
  • The preference you speak of, wasn't present in any recent Mail.app (I checked back to Lion). The only "don't keep copies" setting was for select Mailboxes and the mail messages were always kept locally and the don't keep was to avoid storing them on the server if you enabled the checkbox. Not the other way around as written... Here is the Mountain Lion version of that dialog. – bmike Dec 12 '13 at 2:44
5
+200

After looking through the updates to Mail in Mavericks, it looks like I have bad news. There does not appear to be any way to disable Mail in Mavericks from storing local copies of messages (of course, you can save some space by preventing Mavericks from storing local copies of attachments).

If you are hard-pressed for space to the point where a few GB of local mail storage is of particular concern, then your best bet is likely either to use an email service which supports automatic message archiving (so that you can search through an archive which is stored on the server, thus freeing space on your machine that the archived messages would have taken) or routinely remove messages from your inbox and store them elsewhere (e.g., on a NAS). As it seems your goal is to have your messages readily accessible for search and other purposes, the first option is probably more likely to suit your needs.

One possible way to set up the second option (i.e., routinely moving messages out of your inbox) might work well for you. What you'll want to do is create a rule which automatically forwards your email to a second account (what email service you use for this account is entirely up to you) and then deletes the forwarded email from your inbox (you could have this done automatically once the messages is read/a certain numbers of days old or via a keyboard shortcut, whichever is preferable). This way, your local storage will remain small (only unread messages or recent messages, depending upon how you configure your rule), but the external account will have a complete archive of your messages. You can then access this archive in your browser without impacting available local free space.

11

With GMail, you can slightly aleivate this problem with:

Settings > Forwarding and POP/IMAP > Folder Size Limits > Limit IMAP folders to contain no more than this many messages = 1000

Also, in Mac Mail you can still disable Automatically download attachments.

This will leave you with the text of latest 1000 messages from each GMail label.

  • Used Google Apps for Business for 6+ years for multiple accounts and had never noticed this option before, thanks! – David Taiaroa Feb 13 '15 at 15:23
2

There is no way to stop Mail from caching everything in Mavericks.

**The *only thing you can do is tell it to stop caching attachments only. Check under Preferences -> Accounts -> Advanced tab... the third checkbox from the top, uncheck "Automatically download attachments"

2

My impression is OS X Mail is undergoing a fundamental re-invention to make it more of a service and less of the app it was.

  • It uses more database files to track things than in the past were simply files in the filesystem.
  • Search uses spotlight and there is lag on slower computers between when you launch the app and when mail messages get drawn causing many to feel that the whole architecture is rickety and more prone to error.
  • Turning on and off accounts often causes odd behavior where flagged message counts don't update.
  • It uses more helpers to parallelize internal message handling workflows and this also introduces more complexity, chance for things to break or get hung up when you want to quit mail or delete a message and the mail server is slow or unavailable.
  • It is being reworked to embrace Apple's new technologies like PowerNap / AppNap / etc... and some old behaviors that don't mix well with those changes are being eliminated.

For people used to Outlook, Apple's Mavericks Mail always works as if it's in Offline mode - caching all messages it can so you never find yourself missing old mails when working without a network connection.

Mail.app downloads each and every IMAP message it can get it's hand on in each and every folder that it know that exists.

Unless you want to use another email client that has this functionality (and google maintains that most clients work the way you want), you'll have to keep your total IMAP message and attachment storage under the allocation that you want on OS X.

There have been server side changes on GMAIL to allow this sort of filtering of folders (a.k.a. labels) on the server side. (This filtering is really needed if you have multiple labels on a message since you can end up with five or more copies of one mail message in this case.) The people I have seen that choose to not deal with Mail's bumpy changes are moving either to MailMate or in some cases using mutt/pine/elm if they had used those mail clients back in the day and work mostly with mail as a text bucket.

Apple does have Exchange functionality on iOS to limit downloading to a time range, but that also needs server-side functionality to work. The benefit of iOS Mail is that downloaded content will auto-expunge if storage space on the flash hits warning and critical levels. Only if enough people send feedback or bug reports to Apple do I expect the OS X Mail to change.

  • 3
    @bmike: not true. Up to and including 10.6.8, Mail.app had an option to "don't keep copies of any messages". And that did the trick. Messages I archive locally are stored on a local imap server, anything I don't want (or want to keep a remote copy of), I leave on gmail's servers. I'm not interested at all in having additional copies (often multiple copies) around! I also do not appreciate at all that it is no longer possible NOT to store passwords, so it looks I'm back to using Thunderbird once I move to 10.9 . Unless someone finds a workaround to get the 10.6 version of Mail working again O:- – RJVB Mar 2 '14 at 16:44
  • It was so possible, as RJVB points out. I wasn't making up a fake question. – bpapa Mar 2 '14 at 17:38
  • 1
    I presumed with the question tagged as Mavericks that we were only discussing 10.9 Mail. I never used the "don't keep copies" setting, but you may be correct that it worked as advertised on older OS. The new Mail certainly is divisive and polarizing - some appreciate the changes, some despise them - but there's no lack of opinions being aired here and elsewhere. Many of the well explained opinions seem reasonable to me after considering the use case of different people are often markedly different. – bmike Mar 2 '14 at 17:39
  • @rjvb I will edit my post - it could be much clearer and I did say "never" when I should have qualified / explained better. Thanks for that helpful comment! – bmike Mar 2 '14 at 17:40
-3

What else are you doing on the MacBook Air that has it burst it's GB seams?

Recommendations

  1. Onyx: http://www.titanium.free.fr Have it run and clean and script your way to a fresher path. Isn't destructive but does clear out gunk.

  2. Delete and prevent RAM image saved on your start volume. Your mac automatically and intelligently creates an image of your RAM for sleep mode (hibernation) so that if the unit suddenly lost power your you didn't use it for a long time and the battery died you can restart and everything is like it was. If you don't have this issue where power lose occurs (ever) then proceed with the following as long as you have some unix/sudo experience.

    First, disable hibernation mode :

    sudo pmset -a hibernatemode 0

    delete /private/var/vm/sleepimage :

    sudo rm /private/var/vm/sleepimage

    create an empty file and name it 'sleepimage' :

    touch /private/var/vm/sleepimage

    change his flag to immuable :

    chflags -uchg /private/var/vm/sleepimage

With this all said and done you will have a the same amount of GB saved on your Mac as you have GBs of RAM.

HDD and SSD are similar in one regard, keep the drive 30% free at all times so that you get the best performance.

  • 1
    Downvoting if I could. Disabling hibernate and sleep is hardly the best way to deal with lack of disk space, and off-topic in a question about Mail.app disk usage. – lkraider Feb 26 '15 at 21:31
  • Not an answer to the question – Jason S Apr 25 '16 at 0:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .