---
url: 'https://simonerescio.it/en/2016/08/mail-app-killing-cpu-and-battery-mac-osx'
title: Mail app killing CPU and battery on Mac OSX
author:
  name: Simone Rescio
  url: 'https://simonerescio.it/en/about-me/'
date: '2016-08-28T00:01:38+02:00'
modified: '2026-04-24T22:19:22+02:00'
type: post
summary: 'If Mail on Mac spikes CPU and drains the battery, corrupted Mail logs are often the culprit—here is a one-line fix and an AppleScript.'
categories:
  - WebTech
image: 'https://simonerescio.it/wp-content/uploads/2016/08/internet_symbol_burning_sign_e-mail_abstraction_10619_3840x2160.jpg'
published: true
---

# Mail app killing CPU and battery on Mac OSX

This is a strange period in technology, while the world talks about going *green*, saving power by unplugging home devices while unused because that small LED light multiplied by millions of users costs a lot of energy, it seems instead that hardware manufacturers, software developers, and IT companies more in general **don’t give a fuck** about any of this.

![Mail app icon](https://simonerescio.it/wp-content/uploads/2016/08/mail_big-100021416-medium-150x150.jpg)Last month I had to deal with [Samsung bloatware on Android](https://simonerescio.it/en/2016/08/dcmprovider-gallery-and-battery-drain-on-samsung-galaxy-note-4) turning my phone into a *toaster*, now I’m here for Apple turning my MacBook into a *panini press* “thanks” to Mail app going crazy.

> anyone else experiencing *extreme* CPU drain on Mac OSX El Captain with Mail app? +160% of CPU is just insane
> — Simone Rescio (@srescio) [5 marzo 2016](https://twitter.com/srescio/status/706126812477165568)

- [1. How to fix](#how-to-fix)
- [2. But I don’t even know what Terminal is, something clickable?](#but-i-don8217t-even-know-what-terminal-is-somethingclickable)

## How to fix

As pointed out on [apple forum](https://discussions.apple.com/thread/7275988?answerId=29578728022#29578728022), this happens due to Mail app logs becoming somehow corrupted, which leads the app into consuming an insane amount of CPU power, with consequent battery drain, probably being stuck in some kind of stupid loop.

Despite being a problem reported all over the internet this is an issue that up today, on **OSX El Capitan 10.11.6** has not been fixed yet, what may be causing Apple the impossibility of doing a minor bugfix release for it is a mystery.

The user of the forum suggests to move the Logs directory then restart the app, and if it doesn’t fix the issue (it always did for me) to restore it where it was. But the Mail app can just recreate the Logs directory each time it is missing at startup time, so unless you need that data for debug purposes you can safely trash it anytime your CPU goes crazy again. So instead of manually looking for the Mail directory and deleting the Logs via Finder you can shorten the operation in a *one liner* command for Terminal, that you can save into a handy alias:

```
rm -rf ~/Library/Containers/com.apple.mail/Data/Library/Logs
```

## But I don’t even know what Terminal is, something clickable?

Here’s an *Apple Script* that quits Mail app, cleans the Logs directory, and restarts it. Save it as an application in Script Editor (or use the code below) and double-click to run—problem solved.

Here’s the content of the executable :

```
tell application "Mail"
	quit
end tell

repeat while application "Mail" is running
end repeat

do shell script "rm -rf ~/Library/Containers/com.apple.mail/Data/Library/Logs"

delay 2

tell application "Mail"
	activate
end tell
```

 [](https://mastodon.social/share?text=http%3A%2F%2Fsresc.io%2FtF7&title=Mail%20app%20killing%20CPU%20and%20battery%20on%20Mac%20OSX)[](https://www.linkedin.com/sharing/share-offsite/?url=http%3A%2F%2Fsresc.io%2FtF7)[](https://simonerescio.it/en/2016/08/mail-app-killing-cpu-and-battery-mac-osx)[](https://reddit.com/submit?url=http%3A%2F%2Fsresc.io%2FtF7&title=Mail%20app%20killing%20CPU%20and%20battery%20on%20Mac%20OSX)[](https://api.whatsapp.com/send?text=Mail%20app%20killing%20CPU%20and%20battery%20on%20Mac%20OSX http%3A%2F%2Fsresc.io%2FtF7)[](https://bsky.app/intent/compose?text=Mail%20app%20killing%20CPU%20and%20battery%20on%20Mac%20OSX%20http%3A%2F%2Fsresc.io%2FtF7)[](https://telegram.me/share/url?url=http%3A%2F%2Fsresc.io%2FtF7&text=Mail%20app%20killing%20CPU%20and%20battery%20on%20Mac%20OSX)[](https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fsresc.io%2FtF7)

