Home About Technology How to stop Mail logs from eating your disk space – Six Colors
About Technology

How to stop Mail logs from eating your disk space – Six Colors

The other week, I noticed that the amount of free disk space on my MacBook Air had dropped rather precipitously to under a few gigabytes. As I usually don’t store that many files on that machine—much less large ones—I went poking around to figure out what was eating up all my disk space.

The culprit, as I reported on Mastodon, turned out to be a Mail log for my iCloud account that had ballooned to an astonishing 28GB—a not insignificant percentage of my 256GB drive. Popping it open, I scrolled through to see, yes, it was just as I expected, a text file logging data from my mail account. I figured something odd must have happened, deleted the file, and thought nothing more of it.

Fast forward to yesterday, when I went to download the latest macOS Sonoma update on that same machine and discovered that I didn’t have enough space. The straits were not quite as dire as before—I still had 20GB or so available, but not enough for the update to install itself. Despite that, the number seemed low, so I once again went in search of the reason.

And, once again, found that the same Mail log was up to almost 9GB. One time might be a mistake, but two, well, two meant it was time to locate the underlying issue. I popped open the file and took a closer look only to realize that this was logging all of my mail, explaining how the size had gone up so rapidly.

Mail's Connection Doctor
Doctor, doctor, Mr. MD—can you tell me please, what files are ailing me?

Fortunately, it didn’t take long to uncover the source: an Apple discussion thread led me to the Mail app’s Connection Doctor (Window > Connection Doctor), an otherwise handy tool for troubleshooting mail issues. At the bottom of that window is a little check box “Log Connection Activity.” When that’s active (as I perhaps did at some point a few months back while troubleshooting my iCloud problems), Mail will start keeping extremely detailed logs, which can quickly reach very large file sizes.

I deactivated the setting and am pleased to report that the logs have been banished, and my disk space is once again my own. But let this be a warning to any who find themselves low on disk space: check those Mail logs, just in case!

[Dan Moren is the East Coast Bureau Chief of Six Colors. You can find him on Mastodon at @dmoren@zeppelin.flights or reach him by email at dan@sixcolors.com. His latest novel, the supernatural detective story All Souls Lost, is out now.]

If you appreciate articles like this one, support us by becoming a Six Colors subscriber. Subscribers get access to an exclusive podcast, members-only stories, and a special community.

Related Articles

About Technology

Money – Day One – Scott H Young

Money is the third foundation in my year-long project (and course) to...

About Technology

Why Phishers Love New TLDs Like .shop, .top and .xyz – Krebs on Security

Phishing attacks increased nearly 40 percent in the year ending August 2024,...

About Technology

Apple Music Replay 2024 is Live

Apple has released its annual Apple Music Replay overview of subscribers’ listening...

About Technology

STREAKS. The to-do list that helps you form good habits. For iOS.

Available in: English, Arabic, Danish, Dutch, Finnish, French, German, Greek, Indonesian, Italian,...