Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

eRondeau

macrumors 65816
Original poster
Mar 3, 2004
1,186
497
Canada's South Coast
Yesterday a friend asked if I could call her elderly mother who lives several hours away because her mom's iMac was really slow. A 2017 i5 8GB w/ 1TB HDD running MacOS Mojave. "All mom ever does is email". So I called mom, had her reboot, try Safe Mode, no change. Talked her through signing into iCloud and starting the Messages.app for the first time. About 2+ hours on the phone I was screen-sharing and seeing what was really going on. Despite having a 1TB HDD she only had 1.3GB free! Her Console and Activity Monitor showed normal except for a tremendously-high CPU Time for her Mail.app. No weird Safari Extensions, Grand Perspective showed nothing odd, system log files all a-okay; it was a pristine install of MacOS. "All I ever do is email." I know a lot about Macs but I was stumped. This was a mystery.

Any guesses?

Finally -- out of desperation -- I sent her an email from my own Mac and watched it received and displayed thru screen sharing. Then I noticed an odd line of text in her Mail window: "Apple Mail Connection Logging Enabled". WTF? Never seen this before. Sure enough this was the culprit. Buried in Mail's Connection Doctor menu is the ability to permanently log ALL Mail activity. I've been using Macs for 20+ years and I own around 30 of them and I've never, ever seen this. So how long has it been logging? Forever. I'm guessing it was mischievously turned on at the retail store before she bought it and it held the setting across MacOS updates. So it's been diligently logging EVERY SINGLE MAIL FETCH ATTEMPT for about 5 years! How big was the log file? Well the IMAP log was a 691.43GB TEXT FILE and its SMTP companion was ~250GB. It took over an hour for MacOS to delete these two files. I unchecked the Logging box, rebooted, and the computer is happy & responsive once again.

Is this the World Record for the Largest Text File???

IMG_3461.jpeg
 
Last edited:

amstel78

macrumors 6502a
Aug 12, 2018
517
183
Now I'm curious as to where that setting in Apple Mail is located. I don't recall ever seeing that option before.

Edit: NVM. Found it under Window / Connection Doctor
 
  • Like
Reactions: yitwail

eRondeau

macrumors 65816
Original poster
Mar 3, 2004
1,186
497
Canada's South Coast
Demonstrating my ignorance here, but why the lengthy delete? Doesn’t ”Erase” just destroy the file pointer(s)? Or was there the security overwrites turned on to max?
Deleting probably took forever because the computer was running with ~1GB of free disk space (0.1% of 1TB). I did the "Delete Immediately" option in hopes it would in fact happen "immediately". I have no idea how MacOS would even try deleting two files totalling 950GB with only 1GB to work with LOL but somehow it eventually did.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.