Cannot delete draft messages in Apple Mail (12.7.2 Monterey)

macOS Monterey 12.7.2, iMac Late 2015 model....


My Drafts email folder shows 55 messages. There should only be 8.


When I use the web browser interface to access my email, I see the correct 8 draft email messages.


Somehow my mail account has been corrupted. I followed the suggestion here:

Mail is Slow and lagging. - Apple Community


to remove the ~/Library/Mail/V9/MailData/Envelope* files

(there is no V5, V6, V7, or V8 directory in ~/Library/Mail/ on my system)


As far as I can tell, the other folders are intact. But the Drafts folder still shows the stale headers as it did before I rebuilt the index (before I re-indexed).


Any suggestions? I suppose I could delete the mail account and recreate it. But I'd like to try to find a different solution first. I just spent all day waiting for the mail account to rebuild; I'd like to avoid repeating it if I could.


Thanks in advance,




iMac 27″, macOS 12.7

Posted on Jan 3, 2024 7:33 PM

Similar questions

25 replies

Jan 3, 2024 9:01 PM in response to Community User

Start with this...


Safe Boot, (holding Shift key down at startup), does the problem occur in Safe Mode? Could take 10 minutes or more.


Safe mode attempts to repair Disks & clears lots of caches & loads safe Drivers, & prevents loading of 3rd party extensions, so if Safe Mode works try again in regular boot.


Mail>Preferences>Accounts>Your Account>Mailbox Behaviors, what path is Drafts Mailbox set to?



Jan 3, 2024 11:57 PM in response to Community User

Hmmmm, I'd try this...


Are you running any VPN, Anti-Virus, or Cleaning apps?


Make a New Location, Using network locations in Mac OS X ...


System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.


System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.


The interface that connects to the Internet should be dragged to the top of the list.


Sys Prefs>Network>highlight the Interface you're using>Advanced>TCP/IP>Configure IPv4: Using DHCP.


If using Wifi, instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.


System Preferences>Network>choose interface>Advanced>Proxies Tab, make sure none are set, like for HTTP & HTTPS.


System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...


8.8.8.8

8.8.4.4

1.1.1.1

9.9.9.9


Apply.

Jan 4, 2024 11:01 AM in response to Community User

OK...


Safe Boot, (holding Shift key down at startup), does the problem occur in Safe Mode? Could take 10 minutes.


Safe mode attempts to repair Disks & clears lots of caches & loads safe Drivers, & prevents loading of 3rd party extensions, so if Safe Mode works try again in regular boot.


Sounds like you need to rebuild the Spotlight Index...


How to rebuild the Spotlight index on your Mac

If searching your Mac doesn’t return expected results, rebuilding the Spotlight index might help.


Choose Apple menu () > System Preferences, then click Spotlight.

Click the Privacy tab.

Drag the folder or disk that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the Add (+) button and select the folder or disk to add.

To add an item to the Privacy tab, you must have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for “permissions.”

From the same list of locations, select the folder or disk that you just added. Then click the Remove (–) button to remove it from the list.

Quit System Preferences. Spotlight will reindex the contents of the folder or disk.


If still not working...


Manually Rebuilding Spotlight via Terminal

If the aforementioned Spotlight control panel approach doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc. To re-index only for a specific drive, use the /Volumes path. For example, for an external drive named “MiniMe,” the command would look like this:


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.


If still need be…


Open Terminal and run each of these one at a time


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network


killall Dock


sudo mdutil -E /


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.





Jan 6, 2024 10:52 AM in response to Community User

OK, folks, here is an update.


So far, late last night and this morning, Mail appears to be working nominally. It took over 2 days to rebuild my mailboxes (all folders). But now it appears that mail messages loaded in a nominal amount of time as would be expected.


I still don't know how the index got corrupted. But it appears that mail messages are intact, especially the 8 Draft mail messages, which is the correct number.


It could be the case the the Microsoft Exchange server is slow and that is at least one reason why it took so long to re-download the messages. But I have not way to verify this. One piece of information that leads me to this suspicion is that loading mail messages was slower than expected the past 2 days when I accessed my mail account using the web browser interface.


I also notice (for along time now) that it takes a while to establish the connection with the server initially -- even from the web browser interface...!!


Thus I cannot say whether the cause of the corruption of the index files was the fault of Apple Mail or the fault of Microsoft's Exchange server.


@BDAqua, many sincere thanks to you for all your help with this issue. I appreciate it.


Jan 4, 2024 9:21 PM in response to Community User

It is important to note that Outlook is designed to be used as a mail client primarily and it is not designed to be used as a long-term archive store of a large amount of email.

 

Keep the Number of Subfolders in Inbox and Sent Items to Minimum

Outlook on Mac may slow down performance when there are multiple subfolders. Instead, it is preferable to create new folders on the top level. The same level as Inbox and Sent Items are for better performance.


So maybe copy some to On My Mac Boxes then Remove them from the Server?



Outlook For Mac: Best Practices

Sometimes Mac users report that Outlook for Mac is not syncing properly (or syncing quite slowly, freezing frequently) with Exchange. The problem usually is not a connectivity issue between the mail client and the mail server, but rather a local Outlook database corruption.

 

Keep your mail sorted into folders

In many cases, Outlook does work properly with folders as large as 5.000 items and more, but decreasing the folder size can improve the performance drastically, and, generally, this is the first troubleshooting step to be done in a case of slow/freezing Outlook client.

You can move the items using Outlook Web App client.

Read the Microsoft Office article Outlook is running slowly for more information.


https://support.intermedia.com/app/articles/detail/a_id/10593/~/outlook-for-mac%3A-best-practices#:~:text=Keep%20your%20mail%20sorted%20into,of%20slow%2Ffreezing%20Outlook%20client.

Jan 6, 2024 11:12 AM in response to Community User

OK, folks, one final piece of information.


During this investigation process, I was monitoring "top" output. I was running "top -s5" in a Terminal window. Frequently I saw Mail in the "stuck" process state. I couldn't explain to myself why it should be "stuck" when I could see that there were new emails waiting to be downloaded (I also had a browser view open to the web mail interface).


I found this conversation thread:

Apple Mail Stuck - Apple Community


I am surmising that Mail puts itself into the "stuck" mode to save processor cycles: there is no need for Mail to run until it gets an interrupt indicating work to be done -- a user input or an interrupt indicating time to pull email or an asynchronous push message. I thought that Mail in "stuck" state indicated that there was a problem, but perhaps not.


I'm monitoring again this morning, and I see Mail in "sleeping" mode frequently despite me not touching the Mail app (no user input or actions). So I cannot explain why it is not in "stuck" mode as much as it was yesterday and the day before. The difference is that in the past 2 days Mail was rebuilding the mail account (downloading messages from the server). But Mail might put itself in "stuck" mode awaiting events from the server pushing the mail messages down; I don't know.


At least from this morning there does not appear to be a problem.


Jan 4, 2024 10:30 AM in response to BDAqua

Yes, I logged into my mail using the web interface via a browser. It correctly shows 8 Draft messages.


OK, I will try changing the settings to store the Drafts on my Mac.


I am not using any Mail rules.


Jan 4, 2024 10:46 AM in response to Community User

Well, setting the Drafts to be stored on my Mac didn't work....


I now see that there are no longer 55 "unread" messages; the 55 to the right of the folder name no longer appears. But there are 55 messages in the Drafts folder. And I cannot delete them. I get the error message shown in the attached dialog box screen grab.


Hmm, so booting in Safe Mode last night didn't help. I'm going to try to boot in Safe Mode again now to see if that makes a difference. Today I solved what I __think__ might have been a networking issue with the cable modem and router reboot. So I will try Safe Mode again to see if that somehow reconciles the Draft folder state with the server.




Jan 4, 2024 8:53 PM in response to BDAqua

I deleted the email account in question and re-added it. It's been rebuilding for hours now.


One piece of good news is that my Drafts folder now shows 8 draft messages, the correct number.


But Mail is indicating "Downloading Messages" that is going about as slow as a tortoise walking through mud (see attached screen grab). For hours it says it's downloading some small number of messages out of 25,000 - 30,000 messages. I can't tell if there is a problem with the server and the message download is just slow, or if Mail is really confused.


To be honest, I posted questions to the community about this years ago and never got any reply. Can anyone confirm if this is 'normal' and what the heck Mail is doing that it is downloading messages for so long?


I have a 350Mbps internet connection at home, and I regularly can get 200 Mbps download speeds.


I rebooted my cable modem and router this morning, and that seemed to fix the slow message loading problems for about an hour. Then it was back to the same problem of messages taking forever to load.


I am running EtreCheck but it indicates no major problems and only a few minor problems.






Jan 3, 2024 9:50 PM in response to Community User

OK, I just booted in Safe Mode. The problem still occurs.


In both Safe Mode and regular boot mode, Mail is frequently (most of the time) in "stuck" process state as shown on 'top -s5' that I've been running.


I am not sure what "stuck" means on macOS. I think it means that the process is in an uninterruptible wait state, such as waiting for I/O. If this is true, I'm wondering for what I/O Mail is waiting.


In the past few tests, I have been logged into my mail account via the browser interface. I can see that there are no new messages to download from the server. If Mail is caching previously fetched messages, I wonder what could be the I/O for which Mail is waiting?


I'm pretty sure this problem started after I upgraded to 12.7.1, and it now persists after my upgrade to 12.7.2. Monterey.





This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot delete draft messages in Apple Mail (12.7.2 Monterey)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.