When Mail in El Capitan upgrades your email library, it displays a Mail Upgrade window with an “Upgrading Library” progress bar. If Mail can't complete the upgrade, it might quit, reopen, and attempt to upgrade your library again. Follow these steps if that upgrade cycle continues repeatedly:
- Force Mail to quit, such as by pressing Command-Option-Esc.
- From the menu bar in the Finder, choose Go > Home. Your home folder opens.
- Choose File > Get Info. An Info window for your home folder opens.
- If the “Sharing & Permissions” section at the bottom of the window isn't open, click the triangle in that section to open it.
- If the Lock button in the lower-right corner of the window shows a closed lock , click the button, then enter your administrator name and password.
- Click the Action menu in the lower-left corner of the window, then choose “Apply to enclosed items.” Click OK to confirm the action.
- When the progress bar at the top of the Info window closes, open the Terminal app. It's in the Utilities folder of your Applications folder.
- Paste or type this command in Terminal, then press Return:
diskutil resetUserPermissions / `id -u`
On U.S. keyboards, the ` character is just above the Tab key.
- When the process completes, quit Terminal. You should now be able to open Mail.